elevenlabs / elevenlabs-js

The official JavaScript (Node) library for ElevenLabs Text to Speech.
https://elevenlabs.io
MIT License
146 stars 15 forks source link

Timestamps #60

Open sjrogers opened 4 months ago

sjrogers commented 4 months ago

According to the API reference, an endpoint is available that includes timing data with generated speech. Is this feature available in the JS client?

I have not found it in the documentation or in exploring the parameters available for generate. Relevant methods exist on the TextToSpeech class but I'm unsure how to use them straightforwardly as with generate.

danilocanalle commented 4 months ago

Up

henriesteves commented 4 months ago

Up

GuillermoPena commented 4 months ago

Up

dsinghvi commented 4 months ago

@sjrogers we've recently released a reference.md where you can see example requests. I would recommend using the textToSpeech.convertWIthTiimestamps method.