Skip to content

Commit

Permalink
updated asr endpoint with locale
Browse files Browse the repository at this point in the history
  • Loading branch information
amit-s19 committed Mar 14, 2024
1 parent c8cd409 commit b98c99b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ const RenderVoiceRecorder = ({ setInputMsg, tapToSpeak, includeDiv = false }) =>
formData.append('phoneNumber', localStorage.getItem('phoneNumber'));

// Send the WAV data to the API
const resp = await fetch(apiEndpoint + '/aitools/asr', {
const resp = await fetch(apiEndpoint + `/aitools/asr?language=${localStorage.getItem('locale')}`, {
method: 'POST',
body: formData,
});
Expand Down

0 comments on commit b98c99b

Please sign in to comment.