in utils/fix-audio-encoding/convert_from_gcs.py [0:0]
def _ParseArgs():
"""Parse script arguments."""
parser = argparse.ArgumentParser()
parser.add_argument(
'--dest_gcs_bucket',
help='Name of the GCS bucket that will hold converted flac files.',
)
parser.add_argument(
'--src_gcs_bucket', help='Name of the GCS bucket that holds wav files.'
)
parser.add_argument(
'--project_id',
help='Project ID (not number) for the project to own the conversation.',
)
parser.add_argument(
'--impersonated_service_account',
help=(
'A service account to impersonate. If specified, then GCP requests '
'will be authenticated using service account impersonation. '
'Otherwise, the gcloud default credential will be used.'
),
)
parser.add_argument(
'--sample_rate_hertz', default=8000, type=int, help='Sample rate.'
)
return parser.parse_args()