Skip to content

Commit

Permalink
fix: Fixed the warning text.
Browse files Browse the repository at this point in the history
Change-Id: I6278f5c37bd883404b8675847980f8fdfa149b90
  • Loading branch information
Kacper Krasowiak committed Jul 25, 2024
1 parent 5de16d8 commit c6b85fe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ariel/dubbing.py
Original file line number Diff line number Diff line change
Expand Up @@ -1014,8 +1014,9 @@ def _translate_utterance_with_gemini(
else:
prompt = user_message
response = edit_translation_chat_session.send_message(prompt)
updated_translation = response.text.replace("\n", "")
updated_translation = response.text.replace("\n", "").strip()
print(f"The updated translation is: '{updated_translation}'.")
turn += 1
else:
continue_chat = False
try:
Expand Down
2 changes: 1 addition & 1 deletion ariel/text_to_speech.py
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ def adjust_audio_speed(
if speed <= 1.0:
return
logging.warning(
"Adjusting volume will prevent overlaps of utterances. However,"
"Adjusting audio speed will prevent overlaps of utterances. However,"
" it might change the voice sligthly."
)
crossfade = max(1, chunk_size // 2)
Expand Down

0 comments on commit c6b85fe

Please sign in to comment.