Documentation
¶
Overview ¶
Command say speaks a line of text through the default audio device, with no WAV file in between, and types the text out in the terminal as it is spoken.
say [-voice soft|file.voice.json] [-lang file.lang.json] [-volume 1] "Hello there, traveler!"
It takes the same -voice and -lang flags as voiceplay (in the core module). It lives in the ebiten module because playing sound needs an audio backend, and the core module has no dependencies. It talks to oto, the audio library under Ebiten's audio package, directly: Ebiten's audio context opens the device only from a running game loop, which a command line program does not have. Ctrl+C stops the line.
As in voiceplay, the line may give words to other voices with markup ("He said {gruff}stay back{/}."): a tag names a starter voice or a voice file, {name~} is an impression, and -plain speaks the text as written.