feat: complete real-time voice-ai engine upgrades and frontend integration guide
This commit is contained in:
@@ -50,6 +50,7 @@ class SarvamClient:
|
||||
self,
|
||||
text: str,
|
||||
language_code: str = "ta-IN",
|
||||
pace: float = 1.0,
|
||||
) -> bytes | None:
|
||||
if not self.api_key or self.api_key == "your_sarvam_key":
|
||||
return None
|
||||
@@ -66,7 +67,8 @@ class SarvamClient:
|
||||
"inputs": [text],
|
||||
"target_language_code": language_code,
|
||||
"speaker": speaker,
|
||||
"model": "bulbul:v2",
|
||||
"model": "bulbul:v3",
|
||||
"pace": pace,
|
||||
}
|
||||
try:
|
||||
res = await client.post(
|
||||
|
||||
Reference in New Issue
Block a user