We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 43fc9e2 + 439eb17 commit e00be9bCopy full SHA for e00be9b
1 file changed
src/commands/speech/synthesize.ts
@@ -56,7 +56,8 @@ export default defineCommand({
56
const model = (flags.model as string) || 'speech-2.8-hd';
57
const voice = (flags.voice as string) || 'English_expressive_narrator';
58
const ts = new Date().toISOString().slice(0, 19).replace(/[T:]/g, '-');
59
- const outPath = (flags.out as string | undefined) ?? `speech_${ts}.mp3`;
+ const ext = (flags.format as string) || 'mp3';
60
+ const outPath = (flags.out as string | undefined) ?? `speech_${ts}.${ext}`;
61
const outFormat = 'hex';
62
const format = detectOutputFormat(config.output);
63
0 commit comments