How do I convert an audio stream? #850
Unanswered
kdschlosser
asked this question in
1. Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Overview
Let me start off with some background. I am the author of pyWinCoreAudio
https://github.com/kdschlosser/pyWinCoreAudio/tree/develop
and I ant to be able to provide the ability for a user to play audio files so specific endpoints. This would be a useful feature to have so a user would be able to have a video playing using the default sound device and then separately have an MP3 playing to a device that is not the default.
What I need to do is have the ability to convert audio data into PCM format a that is what the IAudioClient interface in Windows needs. I want to be able to provide the ability for the users to specify a file name and the program will do the conversion of the file into PCM. I do not want a huge lag between the time the filename is specified and when the audio starts playing nor do I want to write anything to disk to achieve this. The IAudioClient interface has a buffer that needs to be filled in approximate chunks that make up one second of audio so I would like to be able to convert 1 second chinks of an input file at a time.
Is there any way to go about doing this using PyAV??
Beta Was this translation helpful? Give feedback.
All reactions