mirror of
https://github.com/taigrr/elevenlabs.git
synced 2026-04-01 18:58:52 -07:00
Support command line text & new API attributes (#8)
* support `style` and `use_speaker_boost` API attrs * support optional command line string as text * print out time it took to run
This commit is contained in:
@@ -69,7 +69,7 @@ func main() {
|
||||
text, _ := reader.ReadString('\n')
|
||||
go func() {
|
||||
// stream audio from elevenlabs using the first voice we found
|
||||
err = client.TTSStream(ctx, pipeWriter, text, ids[0], types.SynthesisOptions{Stability: 0.75, SimilarityBoost: 0.75})
|
||||
err = client.TTSStream(ctx, pipeWriter, text, ids[0], types.SynthesisOptions{Stability: 0.75, SimilarityBoost: 0.75, Style: 0.0, UseSpeakerBoost: true})
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user