Commit 439eb17
committed
fix(speech): use correct file extension for default output filename
When --format is specified without --out, the default output filename
always used .mp3 regardless of the requested format. For example,
--format wav would produce speech_xxx.mp3 containing WAV audio data,
causing tools that rely on file extensions to misidentify the format.
Fix: derive the extension from --format flag (defaulting to mp3).
Note: music/generate.ts already handles this correctly.1 parent 43fc9e2 commit 439eb17
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
0 commit comments