How to use a custom translator in real-time voice translation

集团 语言桥 0 Reputation points
2025-04-17T05:32:52.9666667+00:00

I hope to be able to set a custom translation model in an API for real-time voice translation.

https://github.com/Azure-Samples/cognitive-services-speech-sdk/issues/2691

User's image

It is mentioned in the official GitHub issue that custom translation models can be set in real-time voice translation.

I used the categoryId here, but I always get an error: SessionId:3702ffc412d74365965fe01a65e12e47 ResultId:ba435d1d3703433ea7d83a7da8c85330 CancellationReason:Error CancellationErrorCode:BadRequest Error details:Connection was closed by the remote host. Error code: 1007. Error details:Translation custom models require CognitiveServices / AIServices resources. SessionId: 3702ffc412d74365965fe01a65e12e47

User's image

User's image

I want to confirm whether the method I am using is correct, and whether the categoryId I have set here is the Translator API Category ID? If not, could you please explain the correct usage, as I did not find this usage example in the official SDK examples.

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
3,409 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.