fix readme and say

This commit is contained in:
2023-04-19 14:00:03 -07:00
parent 58581c3c46
commit 5451bcd0b1
2 changed files with 3 additions and 2 deletions

View File

@@ -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})