azure-transcription-client

Speech to Text API v3.0


Install
pip install azure-transcription-client==0.1.0

Documentation

Azure Batch Transcription API Python Client

Speech to Text API v3.0.

This Python package is automatically generated by the Swagger Codegen project:

  • API version: v3.0
  • Package version: 1.0.0
  • Build package: io.swagger.codegen.languages.PythonClientCodegen

Requirements.

Python 2.7 and 3.4+

Installation & Usage

pip install

If the python package is hosted on Github, you can install directly from Github

pip install git+https://github.com//.git

(you may need to run pip with root permission: sudo pip install git+https://github.com//.git)

Then import the package:

import azure_transcription_client

Setuptools

Install via Setuptools.

python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import azure_transcription_client

Getting Started

Please follow the installation procedure and then run the following:

from __future__ import print_function
import time
import azure_transcription_client
from azure_transcription_client.rest import ApiException
from pprint import pprint

# Configure API key authorization: apiKeyHeader
configuration = azure_transcription_client.Configuration()
configuration.api_key['Ocp-Apim-Subscription-Key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['Ocp-Apim-Subscription-Key'] = 'Bearer'
# Configure API key authorization: apiKeyQuery
configuration = azure_transcription_client.Configuration()
configuration.api_key['subscription-key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['subscription-key'] = 'Bearer'

# create an instance of the API class
api_instance = azure_transcription_client.DefaultApi(azure_transcription_client.ApiClient(configuration))
id = 'id_example' # str | Format - uuid. The identifier of the model that will be copied.
model_copy = azure_transcription_client.ModelCopy() # ModelCopy | The body contains the subscription key of the target subscription. (optional)

try:
    # Copy Model
    api_response = api_instance.copy_model_to_subscription(id, model_copy=model_copy)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DefaultApi->copy_model_to_subscription: %s\n" % e)

Documentation for API Endpoints

All URIs are relative to https://cognitiveuseprod.cognitiveservices.azure.com/speechtotext/v3.0

Class Method HTTP request Description
DefaultApi copy_model_to_subscription POST /models/{id}/copyto Copy Model
DefaultApi create_dataset POST /datasets Create Dataset
DefaultApi create_endpoint POST /endpoints Create Endpoint
DefaultApi create_evaluation POST /evaluations Create Evaluation
DefaultApi create_hook POST /webhooks Create Web Hook
DefaultApi create_model POST /models Create Model
DefaultApi create_project POST /projects Create Project
DefaultApi create_transcription POST /transcriptions Create Transcription
DefaultApi delete_base_model_log DELETE /endpoints/base/{locale}/files/logs/{logId} Delete Base Model Endpoint Log
DefaultApi delete_base_model_logs DELETE /endpoints/base/{locale}/files/logs Delete All Base Model Endpoint Logs
DefaultApi delete_dataset DELETE /datasets/{id} Delete Dataset
DefaultApi delete_endpoint DELETE /endpoints/{id} Delete Endpoint
DefaultApi delete_endpoint_log DELETE /endpoints/{id}/files/logs/{logId} Delete Custom Model Endpoint Log
DefaultApi delete_endpoint_logs DELETE /endpoints/{id}/files/logs Delete All Custom Model Endpoint Logs
DefaultApi delete_evaluation DELETE /evaluations/{id} Delete Evaluation
DefaultApi delete_hook DELETE /webhooks/{id} Delete Web Hook
DefaultApi delete_model DELETE /models/{id} Delete Model
DefaultApi delete_project DELETE /projects/{id} Delete Project
DefaultApi delete_transcription DELETE /transcriptions/{id} Delete Transcription
DefaultApi get_base_model GET /models/base/{id} Get Base Model
DefaultApi get_base_model_log GET /endpoints/base/{locale}/files/logs/{logId} Get Base Model Endpoint Log
DefaultApi get_base_model_logs GET /endpoints/base/{locale}/files/logs Get Base Model Endpoint Logs
DefaultApi get_base_model_manifest GET /models/base/{id}/manifest Get Base Model Manifest
DefaultApi get_base_models GET /models/base Get Base Models
DefaultApi get_dataset GET /datasets/{id} Get Dataset
DefaultApi get_dataset_file GET /datasets/{id}/files/{fileId} Get Dataset File
DefaultApi get_dataset_files GET /datasets/{id}/files Get Dataset Files
DefaultApi get_datasets GET /datasets Get Datasets
DefaultApi get_datasets_for_project GET /projects/{id}/datasets Get Datasets for Project
DefaultApi get_endpoint GET /endpoints/{id} Get Endpoint
DefaultApi get_endpoint_log GET /endpoints/{id}/files/logs/{logId} Get Custom Model Endpoint Log
DefaultApi get_endpoint_logs GET /endpoints/{id}/files/logs Get Custom Model Endpoint Logs
DefaultApi get_endpoints GET /endpoints Get Endpoints
DefaultApi get_endpoints_for_project GET /projects/{id}/endpoints Get Endpoints for Project
DefaultApi get_evaluation GET /evaluations/{id} Get Evaluation
DefaultApi get_evaluation_file GET /evaluations/{id}/files/{fileId} Get Evaluation File
DefaultApi get_evaluation_files GET /evaluations/{id}/files Get Evaluation Files
DefaultApi get_evaluations GET /evaluations Get Evaluations
DefaultApi get_evaluations_for_project GET /projects/{id}/evaluations Get Evaluations for Project
DefaultApi get_health_status GET /healthstatus Get Health Status
DefaultApi get_hook GET /webhooks/{id} Get Web Hook
DefaultApi get_hooks GET /webhooks Get Web Hooks
DefaultApi get_model GET /models/{id} Get Model
DefaultApi get_model_manifest GET /models/{id}/manifest Get Custom Model Manifest
DefaultApi get_models GET /models Get Custom Models
DefaultApi get_models_for_project GET /projects/{id}/models Get Models for Project
DefaultApi get_project GET /projects/{id} Get Project
DefaultApi get_projects GET /projects Get Projects
DefaultApi get_supported_locales_for_datasets GET /datasets/locales Get Supported Locales for Datasets
DefaultApi get_supported_locales_for_endpoints GET /endpoints/locales Get Supported Locales for Endpoints
DefaultApi get_supported_locales_for_evaluations GET /evaluations/locales Get Supported Locales for Evaluations
DefaultApi get_supported_locales_for_models GET /models/locales Get Supported Locales for Models
DefaultApi get_supported_locales_for_transcriptions GET /transcriptions/locales Get Supported Locales for Transcriptions
DefaultApi get_supported_project_locales GET /projects/locales Get Supported Locales for Projects
DefaultApi get_transcription GET /transcriptions/{id} Get Transcription
DefaultApi get_transcription_file GET /transcriptions/{id}/files/{fileId} Get Transcription File
DefaultApi get_transcription_files GET /transcriptions/{id}/files Get Transcription Files
DefaultApi get_transcriptions GET /transcriptions Get Transcriptions
DefaultApi get_transcriptions_for_project GET /projects/{id}/transcriptions Get Transcriptions for Project
DefaultApi ping_hook POST /webhooks/{id}/ping Ping Web Hook
DefaultApi test_hook POST /webhooks/{id}/test Test Web Hook
DefaultApi update_dataset PATCH /datasets/{id} Update Dataset
DefaultApi update_endpoint PATCH /endpoints/{id} Update Endpoint
DefaultApi update_evaluation PATCH /evaluations/{id} Update Evaluation
DefaultApi update_hook PATCH /webhooks/{id} Update Web Hook
DefaultApi update_model PATCH /models/{id} Update Model
DefaultApi update_project PATCH /projects/{id} Update Project
DefaultApi update_transcription PATCH /transcriptions/{id} Update Transcription
DefaultApi upload_dataset_from_form POST /datasets/upload Create Dataset from Form

Documentation For Models

Documentation For Authorization

apiKeyHeader

  • Type: API key
  • API key parameter name: Ocp-Apim-Subscription-Key
  • Location: HTTP header

apiKeyQuery

  • Type: API key
  • API key parameter name: subscription-key
  • Location: URL query string

Author