Code Monkey home page Code Monkey logo

Comments (5)

ghettokon avatar ghettokon commented on May 18, 2024

I found this file
/home/pi/tjbot/recipes/conversation/node_modules/watson-developer-cloud/speech-to-text/recognize_stream.js

and I changed the value of inactivity_timeout, and stay up longer.

Is this the right way to do it!?

from tjbot.

victordibia avatar victordibia commented on May 18, 2024

Hi @ghettokon
Exactly right! Thats the right way to do it!

You will need to add this flag to your tjbot config when you instantiate it .. listen.

var tjConfig = {
    log: {
        level: 'verbose'
    },
listen: {
        microphoneDeviceId: "plughw:1,0", // plugged-in USB card 1, device 0; see arecord -l for a list of recording devices
        inactivityTimeout: -1, // -1 to never timeout or break the connection. Set this to a value in seconds e.g 120 to end connection after 120 seconds of silence
        language: 'en-US' // see TJBot.prototype.languages.listen
    }
};

Let me know if this helps!

from tjbot.

ghettokon avatar ghettokon commented on May 18, 2024

from tjbot.

victordibia avatar victordibia commented on May 18, 2024

Yes, this is the case.
You can read more on the limits here - https://www.ibm.com/watson/developercloud/doc/speech-to-text/index.html.

-V.

from tjbot.

mimoraes avatar mimoraes commented on May 18, 2024

@victordibia Would you have an idea why my TJBot isn't listening the right sentence??
I speak: Turn off the light, and he understands no sense words

from tjbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.