MagicMirror Forum

    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • Donate
    • Discord
    MagicMirror² v2.25.0 is available! For more information about this release, check out this topic.

    SOLVED Anybody know about PocketSphinx? Need help....

    Troubleshooting
    2
    4
    751
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • T
      THeStigh last edited by

      Hi,

      I need some help with PocketSphinx_Continuous, and I hope there are somebody out there with some experience with this.

      Please get in touch if so, then I can explain the little thing I’m missing …

      S 1 Reply Last reply Reply Quote 0
      • S
        sdetweil @THeStigh last edited by sdetweil

        @thestigh so, you want to slide the mic to someone else, and back… fun times…

        PSC-node needs a start and stop, separate from constructor, right now the constructor does an implict start

        the start does the spawn (save id)
        the stop does a kill (id)

        then MMM-Voice node helper needs commands to stop and restart/start.
        right now its all ‘start’

        the PSC on handlers have to be redone on start/restart, cause the background process stdout is closed and reopened on new spawn.

        then the MMM-Voice has to have added function to receive request to yield and issue request to obtain control.

        there may be some additional recovery work on resumption of listen to the mic after the prior process was killed…(abruptly)

        Sam

        Create a working config
        How to add modules

        1 Reply Last reply Reply Quote 1
        • S
          sdetweil last edited by

          i modified the pocketsphinx-continuous-node and MMM-voice repos to add the start/stop listening support , at least to get it working…

          I have not added any cross module communications yet to invoke it like you wanted…

          see the repos on github

          MMM-voice change https://github.com/sdetweil/MMM-voice/tree/mic_sharing (old code continues to work as it did unchanged)
          pocketsphinx-continuous-node change https://github.com/sdetweil/pocketsphinx-continuous-node

          Sam

          Create a working config
          How to add modules

          1 Reply Last reply Reply Quote 0
          • S
            sdetweil last edited by sdetweil

            i posted an update for the MMM-Voice repo that implements the mic sharing via voice command and cross module notifications…

            still need a fallback mechanism in case no other module claims the mic, right now I have a hard coded 10 second timer just to prove it works

            Sam

            Create a working config
            How to add modules

            1 Reply Last reply Reply Quote 1
            • 1 / 1
            • First post
              Last post
            Enjoying MagicMirror? Please consider a donation!
            MagicMirror created by Michael Teeuw.
            Forum managed by Paul-Vincent Roll and Rodrigo Ramírez Norambuena.
            This forum is using NodeBB as its core | Contributors
            Contact | Privacy Policy