Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

yandex_speech_api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

yandex_speech_api

  • 1.4.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

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.

FAQs

Package last updated on 11 Jun 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc