speech-to-text-nodejs
speech-to-text-nodejs copied to clipboard
Specifying a custom language model
trafficstars
Can you help me understand how to specify a custom language model? My understanding is since this project uses a websocket I need to use this format:
var IAM_access_token = {access_token}; var wsURI = '{ws_url}/v1/recognize'
- '?access_token=' + IAM_access_token
- '&model=es-ES_BroadbandModel'
- '&language_customization_id={customization_id}'; var websocket = new WebSocket(wsURI);
But I'm not sure where to pass this information, or how to hand it an access token and websocket URL. I'm sorry, I'm not much of a coder, I'm just having to stumble through this for a personal project.