Skip to content

Commit

Permalink
Merge pull request #295 from codeNaveen1234/Mitra-release-1.0.0
Browse files Browse the repository at this point in the history
AI4Bharat Api curl and payload update
  • Loading branch information
Vinod-V3 authored Feb 27, 2025
2 parents c5ba16b + f5c2a9e commit 7dc09b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/app/config/url.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,6 @@
"wishlist":"/api/shikshalokam/wishlist-project/"
},
"speechToText":{
"bhashini":"/api/ai4bharat/asr"
"bhashini":"/api/asr/"
}
}
3 changes: 2 additions & 1 deletion src/app/services/voice-input/voice-input.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export class VoiceInputService {
private loaderService: LoaderService
) {}

ai4BharatASR<T>(base64: any, gender = 'female'): Observable<T> {
ai4BharatASR<T>(base64: any, gender = 'female',route= '/explore_page'): Observable<T> {
const header = {
headers: { skipInterceptor: 'true' },
};
Expand All @@ -28,6 +28,7 @@ export class VoiceInputService {
base_64: base64,
source_language: sourceLanguage,
gender: gender,
route: route
},
header
);
Expand Down

0 comments on commit 7dc09b1

Please sign in to comment.