Skip to content

Commit

Permalink
adding xlsx as output file type
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-roethig-db committed May 20, 2024
1 parent 33f38f9 commit f86b6c2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions amondin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def transcribe(
"""

print(f"Running on {device}...")

"""
if not input_file_path.endswith(".wav"):
print(f"Converting {input_file_path} to .wav...")
# get filename
Expand All @@ -43,8 +43,8 @@ def transcribe(
# proceed with newly created .wav file
input_file_path = f"{file_name}.wav"
print(f"Created {input_file_path}")

waveform, sample_rate = torchaudio.load("audio.wav")
"""
waveform, sample_rate = torchaudio.load(input_file_path)

audio = {"waveform": waveform, "sample_rate": sample_rate}

Expand Down

0 comments on commit f86b6c2

Please sign in to comment.