how to set the input language?
kabus202 opened this issue · 0 comments
kabus202 commented
how to set the input language?
const id = "asidjf23sdf";
const connectionConfig = {
"config": {
"confidenceThreshold": 0.7,
"languageCode": "nl-NL",
"meetingTitle": "My Test Meeting",
"timezoneOffset": 480
},
id,
"insightTypes": [
"action_item",
"question"
],
"speaker": {
"name": "My name",
"userId": "emailAddress"
}
};
const connection = await symbl.createAndStartNewConnection(connectionConfig);
connection.on('speech_recognition', (speechData) => {
const name = speechData.user ? speechData.user.name : 'User';
const transcript = speechData.punctuated.transcript;
setTranscribedText(transcript); // Make sure this function is defined
});