-
-
Notifications
You must be signed in to change notification settings - Fork 192
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
Programmable audio source #1358
Comments
hello, thanks for the great work. |
I have a rough version of AudioStreamTrack, a variation of your implementation and aiortc's implementation
Seems to be working, hard to tell since it's suppose to be silent. However, I'd like to send an audio for speech to text, then receive an audio track. Basically fully duplex audio, each track with their respective handlers. Here is an example webrtc object.
Only the source audio track is played. I am not able to process the received audio frames |
@whitphx I need this feature to reproduce audio that is returned in streaming from an http endpoint, I am converting requests.post streaming response into webrtc_ctx = webrtc_streamer(
key="audio",
mode=WebRtcMode.SENDONLY,
source_audio_track=StreamingAudioStreamTrack(text),
media_stream_constraints={"video": False, "audio": True},
async_processing=True,
) |
I created the video source (#1349), but didn't the audio version because
If there are someone want it, please leave a comment in this issue, and also teach me how to generate audio data to feed to
PyAV
library.The text was updated successfully, but these errors were encountered: