Giter Site home page Giter Site logo

cybersys / yandex-speech-api Goto Github PK

View Code? Open in Web Editor NEW

This project forked from medvedu/yandex-speech-api

0.0 0.0 0.0 96 KB

Text to speech translation. Supports next languages: english, turkey, ukrain, russian. Supports speaker, emotion, speech speed selection. Based on Yandex Speech Cloud.

License: MIT License

Ruby 100.00%

yandex-speech-api's Introduction

YandexSpeechApi Gem Version Build Status Code Climate Inline docs Coverage Status

Description

Converts English, Ukrain, Russian or Turkey text to speech. Solution based on Yandex SpeechKit Cloud technology.

About Key

Before usage you need to get an api key. Official site: https://developer.tech.yandex.ru (look for SpeechKit Cloud key)

Usage

  require 'yandex_speech'
  
  key = File.open('secret key/key').readline.strip
  
  speaker = YandexSpeechApi::Speaker.new key: key, language: 'russian'
  speaker.save_to_file 'Не будите спящего кота.'
  YandexSpeechApi.key = File.open('secret key/key').readline.strip
  
  message = "Don't trouble trouble until trouble troubles you"
  speaker = YandexSpeechApi::Speaker.new voice: :zahar, speed: 1.1
  speaker.say message
  key = File.open('secret key/key').readline.strip
  message = 'one two three. one two three. one two three four.'
  
  speaker = YandexSpeechApi::Speaker.new do |s|
    s.key      = key
    s.voice    = :jane
    s.language = :english
    s.emotion  = :good
  end
  
  speaker.say message

Notes

2000 symbols per request.

Dependencies

  • Ruby 2.0.0 or higher.
  • mpg123

License

Released under the MIT License. See the LICENSE file for further details.

yandex-speech-api's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.