Leslie Optional
Leslie Optional

Reputation: 178

Houndify Speech to Text leaves SpokenRespons blank

I have the sample houndify web client working, which shows the user utterance. The node server is also working and showing the voice object, but it's leaving the utterance as blank. STATUS is OK Is it because it's running on a local server?

Note: My goal captures the streaming audio from the browser (check) and send houndify Speech to Text only (check) and get in in the node server. (almost)

This is my server.js :

var voiceRequest = new Houndify.VoiceRequest({
  clientId: config.clientId,
  clientKey: config.clientKey,

  requestInfo: {
    UserID: "test_user",
    Latitude: 37.388309,
    Longitude: -121.973968
  },

  // Sample rate of input audio
  sampleRate: 16000,

  // convertAudioToSpeex: true,

  // Enable Voice Activity Detection, default: true
  enableVAD: true,

  // Partial transcript, response and error handlers
  onTranscriptionUpdate: (transcript) => {
    console.log("Partial Transcript:", transcript.Response);
  },

  onResponse: (response, info) =>{
    console.log('->',response);
    console.log('iiii->',info);
  },

  onError: (err, info) => {
    console.log(err);
  }
})

enter image description here


server result:

enter image description here

Upvotes: 1

Views: 156

Answers (0)

Related Questions