mirror of
https://github.com/taigrr/elevenlabs.git
synced 2026-04-02 03:08:57 -07:00
fix readme and say
This commit is contained in:
@@ -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.
|
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
|
## Test Program
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,8 @@ func main() {
|
|||||||
pipeReader, pipeWriter := io.Pipe()
|
pipeReader, pipeWriter := io.Pipe()
|
||||||
|
|
||||||
reader := bufio.NewReader(os.Stdin)
|
reader := bufio.NewReader(os.Stdin)
|
||||||
text, _ := reader.ReadString('\n')
|
b, _ := io.ReadAll(reader)
|
||||||
|
text := string(b)
|
||||||
|
|
||||||
go func() {
|
go func() {
|
||||||
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})
|
||||||
|
|||||||
Reference in New Issue
Block a user