Coder Social home page Coder Social logo

Comments (12)

ImEmJay avatar ImEmJay commented on May 10, 2024

@renekliment Getting rid of pyalsaaudio is a good idea. if no one else has already started i would have a look at it. but do we need to support pyaudio and sounddevice? As far as i see they both wrap the PortAudio library. Snowboy and pocketspinx can both work with them.

from alexapi.

renekliment avatar renekliment commented on May 10, 2024

@ImEmJay go ahead :-)

Note, that the code for pocketsphinx has been moved to triggers and the code around normal recording has been changed a lot - all in a PR #119. So it may be best to wait after the PR is merged, which should be today.

Probably not, I was just thinking out loud.

Whether to do pyaudio or sounddevice ...

I would go with sounddevice, but it's up to you.

from alexapi.

ImEmJay avatar ImEmJay commented on May 10, 2024

@renekliment I also think that pyaudio is more legacy and sounddevice is more under active development. but could have been that you know of some huge differences in platform compatibility or such ^^ but as they both just wrap i think that shouldn't really be an issue.

from alexapi.

renekliment avatar renekliment commented on May 10, 2024

Okay. Let's go with sounddevice then.

from alexapi.

renekliment avatar renekliment commented on May 10, 2024

For the record, the messy PRs (#119 & #110) have been merged, so there should generally be no major conflicts when editing the recording code.

from alexapi.

renekliment avatar renekliment commented on May 10, 2024

Hey, just checking in. Any progress on this?

from alexapi.

ImEmJay avatar ImEmJay commented on May 10, 2024

@renekliment hey, had no time over the last week. Think I'll get it done this weekend. But after my initial tests I would maybe change my decision and go with pyaudio. Sounddevice brings in a good amount of dependencies and propably unnecessary complexity. But will see when I finally get into it.

from alexapi.

ImEmJay avatar ImEmJay commented on May 10, 2024

@renekliment Because of your comment on #152. Checking and listing devices can be done in both and was planned to add another PR to improve setting/checking the input device.

from alexapi.

renekliment avatar renekliment commented on May 10, 2024

unnecessary complexity

What do you mean by that exactly?

good amount of dependencies

Do you mean NumPy? I thought it's optional and we don't have to install it.

from alexapi.

renekliment avatar renekliment commented on May 10, 2024

@ImEmJay Do you know of a good way to check if a device name is valid in pyalsaaudio? Other than trying to open it.

from alexapi.

ImEmJay avatar ImEmJay commented on May 10, 2024

@renekliment NumPy is optional. More the Python and system libraries for CFFI and their dependencies. Also seemed like you need to cast the input before pocketsphinx can handle it. But only gave them both a very short test drive to compare them a bit.
Regarding pyalsaaudio: Not atm. Only had a short look at their API till now.

from alexapi.

renekliment avatar renekliment commented on May 10, 2024

All the alsaaudio stuff from main.py has been moved to an extra module in #156 so all the recording / alsaaudio stuff is in the capture module and the pocketsphinxtrigger module.

If you have any work, please rebase on top of that. This makes more sense and as a bonus, we get no merge conflicts with the main.py stuff.

Also, you can consider moving the library-dependent stuff from the pocketsphinx trigger to the capture module as suggested in #156.

from alexapi.

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.