Skip to content
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

TextToSpeech.convertWithTimstamps response is Promise<unknown> #80

Open
hkfi opened this issue Aug 10, 2024 · 4 comments
Open

TextToSpeech.convertWithTimstamps response is Promise<unknown> #80

hkfi opened this issue Aug 10, 2024 · 4 comments

Comments

@hkfi
Copy link

hkfi commented Aug 10, 2024

It would be nice to have a typed response.

Eg.

{
  audio_base64: string;
  alignment: {
    characters: Array<string>;
    character_start_times_seconds: Array<number>;
    character_end_times_seconds: Array<number>;
  };
  normalized_alignment: {
    characters: Array<string>;
    character_start_times_seconds: Array<number>;
    character_end_times_seconds: Array<number>;
  };
}
@maximedupre
Copy link

maximedupre commented Aug 31, 2024

I just get undefined 🤷🏻‍♂️

const audioStream = await elevenlabs.textToSpeech.streamWithTimestamps(
    SARAH_VOICE_ID,
    { text }
);
    
console.log(audioStream) // undefined 

@horbel
Copy link

horbel commented Nov 1, 2024

Hi, any updates on this?

@psioukas
Copy link

psioukas commented Nov 1, 2024

I just get undefined 🤷🏻‍♂️

const audioStream = await elevenlabs.textToSpeech.streamWithTimestamps(
    SARAH_VOICE_ID,
    { text }
);
    
console.log(audioStream) // undefined 

Same for me! Do we need to handle this in another way?

@maximedupre
Copy link

maximedupre commented Nov 1, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants