spatialaudio / python-sounddevice

:sound: Play and Record Sound with Python :snake:
https://python-sounddevice.readthedocs.io/
MIT License
980 stars 145 forks source link

Saving audio files. #421

Closed shreder95ua closed 1 year ago

shreder95ua commented 1 year ago

In this module, you can create a recording, but you can save it. It would be useful, for example for recording programs, or for ATT (audio-to-text) programs.

HaHeho commented 1 year ago

For example https://github.com/spatialaudio/python-sounddevice/blob/master/examples/rec_unlimited.py shows how to export the data as an audio file. With soundfile this can be done continuously (as in the example) or once for a long chunk of audio data.

You didn't formulate a question, but does this help?

shreder95ua commented 1 year ago

Yeah, it works! I just tried to do something like siri or hey google. Thanks a bunch!