-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Updated websocket examples #15
base: main
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
examples/websockets/clients/next/src/lib/audio-context-player.ts
Outdated
Show resolved
Hide resolved
examples/websockets/clients/next/src/lib/audio-context-player.ts
Outdated
Show resolved
Hide resolved
examples/websockets/clients/next/src/lib/audio-context-player.ts
Outdated
Show resolved
Hide resolved
print(f"first byte sent at: {time.time()}") | ||
async for text in text_chunker(text_iterator): | ||
await websocket.send(json.dumps({"text": text})) | ||
await websocket.send(json.dumps({"text": "", "flush": True})) | ||
|
||
await listen_task |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
examples/text-to-speech-websockets/measure-latency-node/src/index.ts
Outdated
Show resolved
Hide resolved
@@ -0,0 +1,64 @@ | |||
import 'dotenv/config'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work if the next app and express app are running on different available ports. Can you please try again?
Also can you change all the models to the turbo models as they'll give the best results |
TODOs before merging for Marcel // TODO: handle timeout between server and elevenlabs Also note to self:
|
No description provided.