Skip to content

Commit

Permalink
fix: remove useless save
Browse files Browse the repository at this point in the history
  • Loading branch information
p0n1 committed Jun 27, 2024
1 parent 59cd02e commit 31e5eb3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion audiobook_generator/tts_providers/edge_tts_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,12 +110,12 @@ async def save(
) -> None:
# Save the audio and metadata to the specified files.
await self.chunkify()
await super().save(audio_fname, metadata_fname)

self.file.seek(0)
audio: AudioSegment = AudioSegment.from_raw(
self.file, sample_width=2, frame_rate=24000, channels=1
)
logger.debug(f"Exporting the audio")
audio.export(audio_fname)
logger.info(f"Saved the audio to: {audio_fname}")

Expand Down

0 comments on commit 31e5eb3

Please sign in to comment.