Skip to content

Commit

Permalink
fix text reset
Browse files Browse the repository at this point in the history
  • Loading branch information
daavoo committed Dec 5, 2024
1 parent 561181e commit 968dd0a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example_data/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ text_to_text_prompt: |
"Speaker 1": "Sure! Imagine it like this...",
"Speaker 2": "Oh, that's cool! But how does..."
}
sampling_rate: 44_100
sampling_rate: 44100
speakers:
- id: 1
name: Laura
Expand Down
2 changes: 1 addition & 1 deletion src/document_to_podcast/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,6 @@ def document_to_podcast(
if text.endswith("\n") and "Speaker" in text:
logger.debug(text)
speaker_id = re.search(r"Speaker (\d+)", text).group(1)
text = ""
tone = next(
speaker for speaker in config.speakers if speaker.id == int(speaker_id)
).tone
Expand All @@ -142,6 +141,7 @@ def document_to_podcast(
tone,
)
podcast_audio.append(speech)
text = ""

logger.info("Saving Podcast...")
sf.write(
Expand Down

0 comments on commit 968dd0a

Please sign in to comment.