Skip to content

Commit

Permalink
Translation not available in google and aws
Browse files Browse the repository at this point in the history
  • Loading branch information
edsu committed Apr 13, 2024
1 parent f246a3d commit 5a1fd1b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions transcribe/aws.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ def run(output_dir):
file_metadata["run_count"] = len(results) + 1
file = file_metadata["media_filename"]

if file_metadata["media_language"] != file_metadata["transcript_language"]:
logging.info("skipping since google doesn't support translation")
continue

logging.info("transcribing with aws %s", file)

start_time = datetime.datetime.now()
Expand Down
5 changes: 5 additions & 0 deletions transcribe/google.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,11 @@ def run(output_dir):
for file_metadata in tqdm.tqdm(utils.get_data_files(), desc="google".ljust(10)):
file_metadata["run_count"] = len(results) + 1
file = file_metadata["media_filename"]

if file_metadata["media_language"] != file_metadata["transcript_language"]:
logging.info("skipping since google doesn't support translation")
continue

logging.info(f"running google speech-to-text with {file}")

start_time = datetime.datetime.now()
Expand Down

0 comments on commit 5a1fd1b

Please sign in to comment.