TranscribeServiceClient#
Index > TranscribeService > TranscribeServiceClient
Auto-generated documentation for TranscribeService type annotations stubs module mypy-boto3-transcribe.
TranscribeServiceClient#
Type annotations and code completion for boto3.client("transcribe")
.
boto3 documentation
# TranscribeServiceClient usage example
from boto3.session import Session
from mypy_boto3_transcribe.client import TranscribeServiceClient
def get_transcribe_client() -> TranscribeServiceClient:
return Session().client("transcribe")
Exceptions#
boto3
client exceptions are generated in runtime.
This class provides code completion for boto3.client("transcribe").exceptions
structure.
# Exceptions.exceptions usage example
client = boto3.client("transcribe")
try:
do_something(client)
except (
client.exceptions.BadRequestException,
client.exceptions.ClientError,
client.exceptions.ConflictException,
client.exceptions.InternalFailureException,
client.exceptions.LimitExceededException,
client.exceptions.NotFoundException,
) as e:
print(e)
# Exceptions.exceptions type checking example
from mypy_boto3_transcribe.client import Exceptions
def handle_error(exc: Exceptions.BadRequestException) -> None:
...
Methods#
can_paginate#
Check if an operation can be paginated.
Type annotations and code completion for boto3.client("transcribe").can_paginate
method.
boto3 documentation
# can_paginate method definition
def can_paginate(
self,
operation_name: str,
) -> bool:
...
close#
Closes underlying endpoint connections.
Type annotations and code completion for boto3.client("transcribe").close
method.
boto3 documentation
# close method definition
def close(
self,
) -> None:
...
create_call_analytics_category#
Creates a new Call Analytics category.
Type annotations and code completion for boto3.client("transcribe").create_call_analytics_category
method.
boto3 documentation
# create_call_analytics_category method definition
def create_call_analytics_category(
self,
*,
CategoryName: str,
Rules: Sequence[Union[RuleTypeDef, RuleOutputTypeDef]], # (1)
InputType: InputTypeType = ..., # (2)
) -> CreateCallAnalyticsCategoryResponseTypeDef: # (3)
...
# create_call_analytics_category method usage example with argument unpacking
kwargs: CreateCallAnalyticsCategoryRequestRequestTypeDef = { # (1)
"CategoryName": ...,
"Rules": ...,
}
parent.create_call_analytics_category(**kwargs)
create_language_model#
Creates a new custom language model.
Type annotations and code completion for boto3.client("transcribe").create_language_model
method.
boto3 documentation
# create_language_model method definition
def create_language_model(
self,
*,
LanguageCode: CLMLanguageCodeType, # (1)
BaseModelName: BaseModelNameType, # (2)
ModelName: str,
InputDataConfig: InputDataConfigTypeDef, # (3)
Tags: Sequence[TagTypeDef] = ..., # (4)
) -> CreateLanguageModelResponseTypeDef: # (5)
...
- See CLMLanguageCodeType
- See BaseModelNameType
- See InputDataConfigTypeDef
- See TagTypeDef
- See CreateLanguageModelResponseTypeDef
# create_language_model method usage example with argument unpacking
kwargs: CreateLanguageModelRequestRequestTypeDef = { # (1)
"LanguageCode": ...,
"BaseModelName": ...,
"ModelName": ...,
"InputDataConfig": ...,
}
parent.create_language_model(**kwargs)
create_medical_vocabulary#
Creates a new custom medical vocabulary.
Type annotations and code completion for boto3.client("transcribe").create_medical_vocabulary
method.
boto3 documentation
# create_medical_vocabulary method definition
def create_medical_vocabulary(
self,
*,
VocabularyName: str,
LanguageCode: LanguageCodeType, # (1)
VocabularyFileUri: str,
Tags: Sequence[TagTypeDef] = ..., # (2)
) -> CreateMedicalVocabularyResponseTypeDef: # (3)
...
# create_medical_vocabulary method usage example with argument unpacking
kwargs: CreateMedicalVocabularyRequestRequestTypeDef = { # (1)
"VocabularyName": ...,
"LanguageCode": ...,
"VocabularyFileUri": ...,
}
parent.create_medical_vocabulary(**kwargs)
create_vocabulary#
Creates a new custom vocabulary.
Type annotations and code completion for boto3.client("transcribe").create_vocabulary
method.