Created
July 17, 2014 00:57
-
-
Save alitaso345/9546694a4ba502b0978a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'voicetext' | |
voice = VoiceText.new('API key') | |
wav = voice.speaker(:haruka) | |
.emotion(:happiness, level: :HIGHT) | |
.pitch(100) | |
.speed(100) | |
.volume(100) | |
.speak('おはようございます') | |
save_file(wav) #wavファイルをローカルに保存 | |
play_sound(wav) #その場で音声を再生 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment