diff --git a/ariel/dubbing.py b/ariel/dubbing.py index b4d5db9..7d67897 100644 --- a/ariel/dubbing.py +++ b/ariel/dubbing.py @@ -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: diff --git a/ariel/text_to_speech.py b/ariel/text_to_speech.py index fddb72f..7e797b1 100644 --- a/ariel/text_to_speech.py +++ b/ariel/text_to_speech.py @@ -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)