hamxahbhattii commited on
Commit
82b24ba
1 Parent(s): a737ed3

Added PRint Statements for Audio Book Generation

Browse files
Files changed (1) hide show
  1. main.py +7 -1
main.py CHANGED
@@ -397,10 +397,16 @@ async def get_audiobook(user_id: str, narration_style: str, speaker: str = "male
397
 
398
  narrator = AudioBookNarration(text_input=text_input)
399
  output = narrator.define_chain(narration_style=narration_style)
400
-
 
 
401
  # Generating Audiobook
402
  audiobook = AudioBook(output_folder=output_folder)
403
  audio_path = audiobook.generate_audio_from_text(output, speaker=speaker, filename="output_audio")
 
 
 
 
404
 
405
  # Converting the Audio to Required Audio Parameters
406
  audio_path = convert_audio(audio_path, audio_format, audio_quality)
 
397
 
398
  narrator = AudioBookNarration(text_input=text_input)
399
  output = narrator.define_chain(narration_style=narration_style)
400
+ print("=============="*50)
401
+ print("####### Generation Audio########"*50)
402
+ print("=============="*50)
403
  # Generating Audiobook
404
  audiobook = AudioBook(output_folder=output_folder)
405
  audio_path = audiobook.generate_audio_from_text(output, speaker=speaker, filename="output_audio")
406
+
407
+ print("=============="*50)
408
+ print(f"####### Audio Path :{audio_path} ########"*50)
409
+ print("=============="*50)
410
 
411
  # Converting the Audio to Required Audio Parameters
412
  audio_path = convert_audio(audio_path, audio_format, audio_quality)