mirror of
https://github.com/taigrr/elevenlabs.git
synced 2026-04-02 03:08:57 -07:00
update to newer sound package
This commit is contained in:
13
README.md
13
README.md
@@ -1,10 +1,10 @@
|
||||
# elevenlabs
|
||||
|
||||
[](https://opensource.org/licenses/0BSD)
|
||||
[](https://godoc.org/github.com/taigrr/elevenlabs)
|
||||
[](go.mod)
|
||||
[](https://goreportcard.com/report/github.com/taigrr/elevenlabs)
|
||||
|
||||
|
||||
Unofficial [elevenlabs.io](https://beta.elevenlabs.io/) ([11.ai](http://11.ai)) voice synthesis client
|
||||
|
||||
This library is not affiliated with, nor associated with ElevenLabs in any way.
|
||||
@@ -13,10 +13,10 @@ ElevenLabs' official api documentation, upon which this client has been
|
||||
derived, [can be found here](https://api.elevenlabs.io/docs).
|
||||
|
||||
## Purpose
|
||||
|
||||
This go client provides an easy interface to create synthesized voices and
|
||||
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 your API key [from here](https://help.elevenlabs.io/hc/en-us/articles/14599447207697-How-to-authorize-yourself-using-your-xi-api-key-).
|
||||
|
||||
@@ -35,8 +35,9 @@ Set the `XI_API_KEY` environment variable, and pipe it some text to give it a wh
|
||||
To use this library, create a new client and send a TTS request to a voice.
|
||||
The following code block illustrates how one might replicate the say/espeak
|
||||
command, using the streaming endpoint.
|
||||
I've opted to go with faiface's beep package, but you can also save the file
|
||||
I've opted to go with gopxl's beep package, but you can also save the file
|
||||
to an mp3 on-disk.
|
||||
|
||||
```go
|
||||
package main
|
||||
|
||||
@@ -48,9 +49,9 @@ import (
|
||||
"os"
|
||||
"time"
|
||||
|
||||
"github.com/faiface/beep"
|
||||
"github.com/faiface/beep/mp3"
|
||||
"github.com/faiface/beep/speaker"
|
||||
"github.com/gopxl/beep/v2"
|
||||
"github.com/gopxl/beep/v2/mp3"
|
||||
"github.com/gopxl/beep/v2/speaker"
|
||||
|
||||
"github.com/taigrr/elevenlabs/client"
|
||||
"github.com/taigrr/elevenlabs/client/types"
|
||||
|
||||
Reference in New Issue
Block a user