asweigart / asweigart/pyaudacity
How to export to wav
- Dominant language
- Python
- Stars
- 38
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Description
HI, I want to record something and after that export it to .wav, the thins is that when I try to open and listen to the .wav file it's just not playing anythin, is like it's empty. The .aup3 it's completly normal, but the .wav is empty. Here is my code:
```
import pyaudacity as pa
import time
pa.do("SelectAll:")
pa.do("RemoveTracks:")
pa.do("Record2ndChoice:")
time.sleep(5.0)
pa.do("Stop:")
pa.do("Save:")
basename="audio"
pa.do('Export2: Filename="' + basename + '.wav"')
pa.do('TrackClose')
```
The wav autput is empty

Anyone that has solved this issue?
Thanks for reading.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by reproducing the provided recording and Export2 snippet in Audacity, then verify whether the project contains audio before and after export. Done means identifying why the resulting WAV is empty and confirming that the exported file contains playable audio.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- audio-video-rtc, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100