Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio_capture not from a device, but straight from wav file (source is a .wav file not microphone) #158

Open
antondim opened this issue Oct 6, 2020 · 4 comments

Comments

@antondim
Copy link

antondim commented Oct 6, 2020

Hello, as title suggests I'm trying to use a pre-recorded .wav file as audio source and publish it's data as a signed int16[] or byte[] audio stream, to /audio (or /audio/audio) topic.

Documentation seems to ignore this case, even though it's stated in description of "audio_capture" package.

@antondim antondim changed the title Audio_capture not from a device, but straing from wav file (source is a .wav file not microphone) Audio_capture not from a device, but straight from wav file (source is a .wav file not microphone) Oct 6, 2020
@knorth55
Copy link
Member

knorth55 commented Oct 6, 2020

currently, we do not support the feature, I think.
but we are welcoming your contribution to enhance audio_common repo.

@antondim
Copy link
Author

antondim commented Oct 8, 2020

could this be a node that's raised inside a python script?

@knorth55
Copy link
Member

knorth55 commented Oct 8, 2020

what do you mean? I don't get what you wan to say.
audio_capture node is written in c++.
https://github.com/ros-drivers/audio_common/blob/master/audio_capture/src/audio_capture.cpp

@antondim
Copy link
Author

antondim commented Oct 8, 2020

It would be easier for me to manipulate audio (devices, stream, data) through python, so I was thinking to call an extra python node via the audio capture launchfile . This node would publish the stream data from python's pyaudio module to a separate topic etc etc . But ok, will look into it in my free time

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants