Skip to content

How do I convert an audio stream? #828

@kdschlosser

Description

@kdschlosser

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??

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions