Squad Multi Language
# support
o
Is it possible to use Squad to understand that I speak a different language during a conversation and direct me to the assistant who speaks that language?
v
@ozer Yes, Squad can be configured to recognize when a different language is being spoken during a conversation and can direct you to an assistant who speaks that language. This would typically involve using a transcriber model that is capable of detecting language, and then routing the conversation to the appropriate assistant based on the detected language. Would you like to set up a transcriber model that supports language detection for your conversations? If so, please provide me with the details of the languages you'd like to support, and I can assist you further.
You can continue this conversation by mentioning me in the message.
o
How should I write the codes I need to write to vapi.start() for this
s
Yes it is possible to ask AI to transfer call to different assistant based on request and ASR you have to check.
To change voice in same assistant you have to use multilingual assistant which supports your required voices and instruct the AI/LLM to user can communicated in different languages.
check out squads.
o
documentation is not enough for the code
Can I write squad codes inside vapi.start(). There is a JSON file in the documentation.
when i write vapi.start({squadId:""}) its erroring
s
Your require to pass squad or squadId to parameter named squad. Code for reference: https://github.com/VapiAI/web/blob/main/vapi.ts#L125
We are working on the documentation.
o
you have a very nice AI service. My request to you is that it would be very nice if you give some weight to the react native side. For example, like the template on the web side, animated microphone etc. according to the level of the sound.
s
sure we will do something about it.
s
Your sending squad as property of assistant which is not correct, check https://docs.vapi.ai/api-reference/calls/create-call
o
i write vapi.start({squad:""}) like here
also changed api.ts
still not working
?
i checked on here its working but when i write the vapi.start({squadId:"59ac1780-29d2-4bbd-9732-b94e512326ec"}) its not working
s
because there is no input parameter name squadId .
You have to pass squadId or squad itself to the squad input parameter of sqaud/
o
i already did it
pls can you share example code
i really need this
@Shubham Bajaj
s
Copy code
js
vapi.start({squad: '<sqaud_id> || <sqaud_config>'})
You can pass either squad_id or sqaud_config and it will work.
o
i passed squad_config
just writed squad:squadId
its working your API reference part
but its not working on code
i tryed everything
@Shubham Bajaj
i writed squad:"" too
i have to connect this until tomorrow pls help @Shubham Bajaj
s
it's squad not squadId.
o
i already tryed
doesn't matter
not working
got an error while starting the call {"_bodyBlob": {"_data": {"collector": [Object], "blobId": "48BC1B15-E325-4403-8B24-27F2BFC2F598", "name": "web.json", "offset": 0, "size": 96, "type": "application/json"}}, "_bodyInit": {"_data": {"collector": [Object], "blobId": "48BC1B15-E325-4403-8B24-27F2BFC2F598", "name": "web.json", "offset": 0, "size": 96, "type": "application/json"}}, "bodyUsed": true, "data": null, "error": {"error": "Bad Request", "message": ["assistant.property squad should not exist"], "statusCode": 400}, "headers": {"map": {"access-control-allow-origin": "*", "alt-svc": "h3=":443"; ma=86400", "cf-cache-status": "DYNAMIC", "cf-ray": "8a1c1c299b1cc1a8-BUD", "content-length": "96", "content-type": "application/json; charset=utf-8", "date": "Thu, 11 Jul 2024 22:08:05 GMT", "etag": "W/"60-lQ35ygByDc7D4cGqkDQCfOqaSg4"", "server": "cloudflare", "x-powered-by": "Express", "x-ratelimit-limit-short": "100", "x-ratelimit-remaining-short": "99", "x-ratelimit-reset-short": "1"}}, "ok": false, "status": 400, "statusText": "", "type": "default", "url": "https://api.vapi.ai/call/web"%7D
yeah i finally did it, but your ways are wrong
pls make better doc
Solution: vapi.start("<squad_assistant_id,{},"")
s
sorry for it It was parameters, and suggested you object type.
5 Views