asweigart / asweigart/pyaudacity

How to export to wav

Open
#12 0 comments 0 reactions 0 assignees View on GitHub
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

![image](https://github.com/user-attachments/assets/27d10e1d-ee80-42f2-a428-ee30bd3fa34c)

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.