Skip to content

lbvf50mobile/yandex-cloud-text-to-speach

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BASH Script for text to speach convertion by Yandex Cloud.

Yandex Speech Kit Documentation

Table of contents

Acknowledgment

Here I want to say kind words for @n0deven, this project started because of his hint about anki card system. And also I appriciate for his help in late night debugging. When after working day everybody are so tired.

And thanks for @cryptstal too.

Instalation

  • Clone repo $ git clone https://github.com/lbvf50mobile/yandex-cloud-text-to-speach.git
    • enter repo directory $ cd yandex-cloud-text-to-speach
    • set execute perimtions on yctts.sh $ chmod u+x yctts.sh
  • Greate Yandex Cloud Key

Usage

  • $ ./yctts.sh "Hey, this soud been generated by Yandex SpeechKit Cloud." "hi.mp3"

TTS

$ echo "I like sound, and keys in file" | ./tts -i <file> > likefile.mp3
$ echo "I like sound, and keys in argument" | ./tts -k <key> > likekey.mp3
$ ./tts -i <file> -- "I like sound, and keys in file" likefile.mp3
$ ./tts -k <key> -- "I like sound, and keys in argument" likekey.mp3

Install

  • $ echo "export YANDEX_CLOUD_TTS_KEY='%yandex_cloud_key%>" >> ~/.bashrc
  • $ cp tts /usr/bin/tts
  • $ chmod ug+x /usr/bin/tts

Usage

$ echo "I like sound, and keys in file" | tts -i <file> > likefile.mp3
$ echo "I like sound, and keys in argument" | tts -k <key> > likekey.mp3
$ echo "I like sound, and keys in the string" | tts -s oksana -k <key> > oksana.mp3
$ echo "I like sound, and keys." | tts -s jane -i ./key > jane.mp3

  • After instaltation it's possible to get keys from the shell variable $YANDEX_CLOUD_TTS_KEY
    • $ echo "Hey, man. this is Yandex Speach cloud" | tts > hello.mp3
    • $ echo 'Hi, my name is Jane.' | tts -s jane -e neutral > janeneutral.mp3

TODO

  • Revrite positional agrument parsing to eliminate -- after keys.
  • Improve documentation.

BUGS

About

Bash script to convert text to mp3 by Yandex SpeechKit Cloud

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published