When using the eu baseUrl the file is queued and processed in the EU server. It can complete but the transcribe or the submit don't seem to work as expected. I think that the polling is not taking the baesUrl into consideration.
When the baseUrl is left to the default then everything seems to be processing correctly.
this.client = new AssemblyAI({
apiKey: process.env.ASSEMBLYAI_API_KEY as string,
// baseUrl: 'https://api.eu.assemblyai.com'
});
// ...
// ...
async transcribe(audioUrl: string): Promise<Transcript> {
const transcript = await this.client.transcripts.transcribe({
...this.data,
audio: audioUrl
});
if (transcript.status === 'error') {
console.log("ERR: Unable to transcribe: " + transcript.error );
// throw new Error("Unable to transcribe: " + transcript.error );
}
return transcript;
}
When using the eu baseUrl the file is queued and processed in the EU server. It can complete but the
transcribeor thesubmitdon't seem to work as expected. I think that the polling is not taking the baesUrl into consideration.When the baseUrl is left to the default then everything seems to be processing correctly.