Skip to content

Commit

Permalink
batch Python sample: fix diarization properties (#2712)
Browse files Browse the repository at this point in the history
  • Loading branch information
chlandsi authored Jan 8, 2025
1 parent fe5fc9e commit 18ca42c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions samples/batch/python/python-client/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,9 +153,7 @@ def transcribe():
# properties.destination_container_url = "<SAS Uri with at least write (w) permissions for an Azure Storage blob container that results should be written to>"

# uncomment the following block to enable and configure speaker separation
# properties.diarization_enabled = True
# properties.diarization = swagger_client.DiarizationProperties(
# swagger_client.DiarizationSpeakersProperties(min_count=1, max_count=5))
# properties.diarization = swagger_client.DiarizationProperties(max_speakers=5, enabled=True)

# uncomment the following block to enable and configure language identification prior to transcription. Available modes are "single" and "continuous".
# properties.language_identification = swagger_client.LanguageIdentificationProperties(mode="single", candidate_locales=["en-US", "ja-JP"])
Expand All @@ -170,7 +168,7 @@ def transcribe():
# Uncomment this block to transcribe all files from a container.
# transcription_definition = transcribe_from_container(RECORDINGS_CONTAINER_URI, properties)

created_transcription, status, headers = api.transcriptions_submit_with_http_info(body=transcription_definition, api_version=API_VERSION)
created_transcription, status, headers = api.transcriptions_submit_with_http_info(transcription=transcription_definition, api_version=API_VERSION)

# get the transcription Id from the location URI
transcription_id = headers["location"].split("/")[-1].split("?")[0]
Expand Down

0 comments on commit 18ca42c

Please sign in to comment.