diff --git a/packages/text-to-speech/src/realisticTextToSpeech.ts b/packages/text-to-speech/src/realisticTextToSpeech.ts index 9b76942f2..fa3e99159 100644 --- a/packages/text-to-speech/src/realisticTextToSpeech.ts +++ b/packages/text-to-speech/src/realisticTextToSpeech.ts @@ -23,7 +23,7 @@ export class RealisticTextToSpeech implements TextToSpeech { 'Content-Type': 'application/json', } - const requestUrl = `${apiEndpoint}/${voiceId}` + const requestUrl = `${apiEndpoint}${voiceId}` const response = await axios.post( requestUrl, { @@ -31,6 +31,7 @@ export class RealisticTextToSpeech implements TextToSpeech { }, { headers: HEADERS, + responseType: 'arraybuffer', } )