diff --git a/README.md b/README.md index ca696a0..39192c9 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ make TTS (text-to-speech) requests to elevenlabs.io As a prerequisite, you must already have an account with elevenlabs.io. -After creating your account, you can get you API key [from here](https://help.elevenlabs.io/hc/en-us/articles/14599447207697-How-to-authorize-yourself-using-your-xi-api-key-). +After creating your account, you can get your API key [from here](https://help.elevenlabs.io/hc/en-us/articles/14599447207697-How-to-authorize-yourself-using-your-xi-api-key-). ## Test Program diff --git a/cmd/say/main.go b/cmd/say/main.go index 7f005de..7e3016e 100644 --- a/cmd/say/main.go +++ b/cmd/say/main.go @@ -26,7 +26,8 @@ func main() { pipeReader, pipeWriter := io.Pipe() reader := bufio.NewReader(os.Stdin) - text, _ := reader.ReadString('\n') + b, _ := io.ReadAll(reader) + text := string(b) go func() { err = client.TTSStream(ctx, pipeWriter, text, ids[0], types.SynthesisOptions{Stability: 0.75, SimilarityBoost: 0.75})