Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-roethig-db committed May 18, 2024
1 parent ec7e1a1 commit 34f3f7f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions amondin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,11 +30,14 @@ def transcribe(
print(f"Running on {device}...")

if not input_file_path.endswith(".wav"):
print("Converting audio to .wav...")
print(f"Converting {input_file_path} to .wav...")
# get filename
file_name = Path(input_file_path).stem
print(file_name)
# convert input file to .wav and store it to disk
convert_audio_to_wav(input_file_path, f"{file_name}.wav")
# proceed with newly created .wav file
input_file_path = f"{file_name}.wav"
print(f"Created {input_file_path}")

print("Diarizing speakers...")
diarized_speakers = diarize_speakers(
Expand Down

0 comments on commit 34f3f7f

Please sign in to comment.