Provides details about the specified Amazon Web Services HealthScribe streaming session. To view the status of the streaming session, check the StreamStatus field in the response. To get the details of post-stream analytics, including its status, check the PostStreamAnalyticsResult field in the response.
Parameters:
-
session_id
(SessionId)
–
The identifier of the HealthScribe streaming session you want information about.
Raises:
-
BadRequestException
–
One or more arguments to the StartStreamTranscription, StartMedicalStreamTranscription, or StartCallAnalyticsStreamTranscription operation was not valid. For example, MediaEncoding or LanguageCode used unsupported values. Check the specified parameters and try your request again.
-
InternalFailureException
–
A problem occurred while processing the audio. Amazon Transcribe terminated processing.
-
LimitExceededException
–
Your client has exceeded one of the Amazon Transcribe limits, typically the concurrent stream service quota. This error can also occur if a stream exceeds the maximum session duration. In rare cases, this error can also occur if you increase your number of concurrent streams too quickly. Reduce your number of concurrent streams and try your request again using an exponential backoff strategy.
-
ResourceNotFoundException
–
The request references a resource which doesn't exist.
-
UnknownServiceError
–
The service returned an error code this client does not model.
Source code in docs_src/capo_transcribe_streaming/_services/transcribe_streaming.py
| def get_medical_scribe_stream(
self,
session_id: "capo_transcribe_streaming.types.session_id.SessionId",
*,
config_overrides: Optional[TranscribeStreamingClientConfig] = None,
) -> "capo_transcribe_streaming.types.get_medical_scribe_stream_response.GetMedicalScribeStreamResponse":
"""<p>Provides details about the specified Amazon Web Services HealthScribe streaming session. To view the status of the streaming session, check the <code>StreamStatus</code> field in the response. To get the details of post-stream analytics, including its status, check the <code>PostStreamAnalyticsResult</code> field in the response. </p>
Args:
session_id: <p>The identifier of the HealthScribe streaming session you want information about.</p>
Raises:
capo_transcribe_streaming.errors.bad_request_exception.BadRequestException: <p>One or more arguments to the <code>StartStreamTranscription</code>, <code>StartMedicalStreamTranscription</code>, or <code>StartCallAnalyticsStreamTranscription</code> operation was not valid. For example, <code>MediaEncoding</code> or <code>LanguageCode</code> used unsupported values. Check the specified parameters and try your request again.</p>
capo_transcribe_streaming.errors.internal_failure_exception.InternalFailureException: <p>A problem occurred while processing the audio. Amazon Transcribe terminated processing.</p>
capo_transcribe_streaming.errors.limit_exceeded_exception.LimitExceededException: <p>Your client has exceeded one of the Amazon Transcribe limits, typically the concurrent stream service quota. This error can also occur if a stream exceeds the maximum session duration. In rare cases, this error can also occur if you increase your number of concurrent streams too quickly. Reduce your number of concurrent streams and try your request again using an exponential backoff strategy.</p>
capo_transcribe_streaming.errors.resource_not_found_exception.ResourceNotFoundException: <p>The request references a resource which doesn't exist.</p>
capo_transcribe_streaming.errors.UnknownServiceError: The service returned an error code this client does not model.
"""
def _handler(
req: "OperationRequest[capo_transcribe_streaming.types.get_medical_scribe_stream_request.GetMedicalScribeStreamRequest]",
) -> OperationResponse[
"capo_transcribe_streaming.types.get_medical_scribe_stream_response.GetMedicalScribeStreamResponse"
]:
import capo_transcribe_streaming._operations.transcribe.get_medical_scribe_stream
output, http_response = (
capo_transcribe_streaming._operations.transcribe.get_medical_scribe_stream.get_medical_scribe_stream(
req.options, req.input
)
)
return OperationResponse(output=output, response=http_response)
interceptors_, options_ = self.operation_options(
config_overrides, OperationLogging("GetMedicalScribeStream")
)
input_: capo_transcribe_streaming.types.get_medical_scribe_stream_request.GetMedicalScribeStreamRequest = {
"session_id": session_id
}
response = execute_pipeline(
OperationRequest(input=input_, options=options_),
handler=_handler,
interceptors=list(interceptors_),
)
response.response.close()
return response.output
|