Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions azure-cognitiveservices-speechservices/HISTORY.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.. :changelog:

Release History
===============

0.1.0 (1970-01-01)
++++++++++++++++++

* Initial Release
5 changes: 5 additions & 0 deletions azure-cognitiveservices-speechservices/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
recursive-include tests *.py *.yaml
include *.rst
include azure/__init__.py
include azure/cognitiveservices/__init__.py

33 changes: 33 additions & 0 deletions azure-cognitiveservices-speechservices/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Microsoft Azure SDK for Python
==============================

This is the Microsoft Azure MyService Management Client Library.

Azure Resource Manager (ARM) is the next generation of management APIs that
replace the old Azure Service Management (ASM).

This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7.

For the older Azure Service Management (ASM) libraries, see
`azure-servicemanagement-legacy <https://pypi.python.org/pypi/azure-servicemanagement-legacy>`__ library.

For a more complete set of Azure libraries, see the `azure <https://pypi.python.org/pypi/azure>`__ bundle package.


Usage
=====

For code examples, see `MyService Management
<https://docs.microsoft.com/python/api/overview/azure/>`__
on docs.microsoft.com.


Provide Feedback
================

If you encounter any bugs or have suggestions, please file an issue in the
`Issues <https://github.com/Azure/azure-sdk-for-python/issues>`__
section of the project.


.. image:: https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-cognitiveservices-speechservices%2FREADME.png
1 change: 1 addition & 0 deletions azure-cognitiveservices-speechservices/azure/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
__path__ = __import__('pkgutil').extend_path(__path__, __name__)
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from .speech_services_ap_iv20 import SpeechServicesAPIv20
from .version import VERSION

__all__ = ['SpeechServicesAPIv20']

__version__ = VERSION

Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

try:
from .iread_only_dictionary_py3 import IReadOnlyDictionary
from .dataset_py3 import Dataset
from .model_py3 import Model
from .test_py3 import Test
from .error_detail_py3 import ErrorDetail
from .inner_error_py3 import InnerError
from .error_content_py3 import ErrorContent
from .dataset_identity_py3 import DatasetIdentity
from .model_identity_py3 import ModelIdentity
from .test_definition_py3 import TestDefinition
from .test_update_py3 import TestUpdate
from .dataset_update_py3 import DatasetUpdate
from .endpoint_py3 import Endpoint
from .speech_endpoint_definition_py3 import SpeechEndpointDefinition
from .endpoint_update_py3 import EndpointUpdate
from .endpoint_data_py3 import EndpointData
from .endpoint_data_definition_py3 import EndpointDataDefinition
from .speech_model_definition_py3 import SpeechModelDefinition
from .model_update_py3 import ModelUpdate
from .web_hook_configuration_secret_py3 import WebHookConfigurationSecret
from .web_hook_update_py3 import WebHookUpdate
from .transcription_py3 import Transcription
from .transcription_definition_py3 import TranscriptionDefinition
from .transcription_update_py3 import TranscriptionUpdate
from .endpoint_definition_py3 import EndpointDefinition
from .model_definition_py3 import ModelDefinition
from .component_py3 import Component
from .health_status_response_py3 import HealthStatusResponse
from .dataset_definition_py3 import DatasetDefinition
from .voice_test_py3 import VoiceTest
from .voice_test_definition_py3 import VoiceTestDefinition
except (SyntaxError, ImportError):
from .iread_only_dictionary import IReadOnlyDictionary
from .dataset import Dataset
from .model import Model
from .test import Test
from .error_detail import ErrorDetail
from .inner_error import InnerError
from .error_content import ErrorContent
from .dataset_identity import DatasetIdentity
from .model_identity import ModelIdentity
from .test_definition import TestDefinition
from .test_update import TestUpdate
from .dataset_update import DatasetUpdate
from .endpoint import Endpoint
from .speech_endpoint_definition import SpeechEndpointDefinition
from .endpoint_update import EndpointUpdate
from .endpoint_data import EndpointData
from .endpoint_data_definition import EndpointDataDefinition
from .speech_model_definition import SpeechModelDefinition
from .model_update import ModelUpdate
from .web_hook_configuration_secret import WebHookConfigurationSecret
from .web_hook_update import WebHookUpdate
from .transcription import Transcription
from .transcription_definition import TranscriptionDefinition
from .transcription_update import TranscriptionUpdate
from .endpoint_definition import EndpointDefinition
from .model_definition import ModelDefinition
from .component import Component
from .health_status_response import HealthStatusResponse
from .dataset_definition import DatasetDefinition
from .voice_test import VoiceTest
from .voice_test_definition import VoiceTestDefinition

__all__ = [
'IReadOnlyDictionary',
'Dataset',
'Model',
'Test',
'ErrorDetail',
'InnerError',
'ErrorContent',
'DatasetIdentity',
'ModelIdentity',
'TestDefinition',
'TestUpdate',
'DatasetUpdate',
'Endpoint',
'SpeechEndpointDefinition',
'EndpointUpdate',
'EndpointData',
'EndpointDataDefinition',
'SpeechModelDefinition',
'ModelUpdate',
'WebHookConfigurationSecret',
'WebHookUpdate',
'Transcription',
'TranscriptionDefinition',
'TranscriptionUpdate',
'EndpointDefinition',
'ModelDefinition',
'Component',
'HealthStatusResponse',
'DatasetDefinition',
'VoiceTest',
'VoiceTestDefinition',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class Component(Model):
"""Component.

:param name:
:type name: str
:param type:
:type type: str
:param status: Possible values include: 'Healthy', 'Sick', 'Error'
:type status: str or ~azure.cognitiveservices.speechservices.models.enum
:param message:
:type message: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Component, self).__init__(**kwargs)
self.name = kwargs.get('name', None)
self.type = kwargs.get('type', None)
self.status = kwargs.get('status', None)
self.message = kwargs.get('message', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class Component(Model):
"""Component.

:param name:
:type name: str
:param type:
:type type: str
:param status: Possible values include: 'Healthy', 'Sick', 'Error'
:type status: str or ~azure.cognitiveservices.speechservices.models.enum
:param message:
:type message: str
"""

_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'type': {'key': 'type', 'type': 'str'},
'status': {'key': 'status', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
}

def __init__(self, *, name: str=None, type: str=None, status=None, message: str=None, **kwargs) -> None:
super(Component, self).__init__(**kwargs)
self.name = name
self.type = type
self.status = status
self.message = message
Original file line number Diff line number Diff line change
@@ -0,0 +1,77 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class Dataset(Model):
"""Dataset.

All required parameters must be populated in order to send to Azure.

:param id: Required. The identifier of this entity
:type id: str
:param data_import_kind: Required. The kind of the dataset (e.g. acoustic
data, language data ...). Possible values include: 'Acoustic', 'Language',
'Pronunciation', 'None', 'CustomVoice', 'LanguageGeneration'
:type data_import_kind: str or
~azure.cognitiveservices.speechservices.models.enum
:param name: Required. The name of the object
:type name: str
:param description: The description of the object
:type description: str
:param properties: The custom properties of this entity
:type properties: dict[str, str]
:param locale: The locale of the contained data
:type locale: str
:param created_date_time: Required. The time-stamp when the object was
created
:type created_date_time: datetime
:param last_action_date_time: Required. The time-stamp when the current
status was entered
:type last_action_date_time: datetime
:param status: Required. The status of the object. Possible values
include: 'Succeeded', 'Failed', 'NotStarted', 'Running'
:type status: str or ~azure.cognitiveservices.speechservices.models.enum
"""

_validation = {
'id': {'required': True},
'data_import_kind': {'required': True},
'name': {'required': True},
'created_date_time': {'required': True},
'last_action_date_time': {'required': True},
'status': {'required': True},
}

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
'data_import_kind': {'key': 'dataImportKind', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{str}'},
'locale': {'key': 'locale', 'type': 'str'},
'created_date_time': {'key': 'createdDateTime', 'type': 'iso-8601'},
'last_action_date_time': {'key': 'lastActionDateTime', 'type': 'iso-8601'},
'status': {'key': 'status', 'type': 'str'},
}

def __init__(self, **kwargs):
super(Dataset, self).__init__(**kwargs)
self.id = kwargs.get('id', None)
self.data_import_kind = kwargs.get('data_import_kind', None)
self.name = kwargs.get('name', None)
self.description = kwargs.get('description', None)
self.properties = kwargs.get('properties', None)
self.locale = kwargs.get('locale', None)
self.created_date_time = kwargs.get('created_date_time', None)
self.last_action_date_time = kwargs.get('last_action_date_time', None)
self.status = kwargs.get('status', None)
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# --------------------------------------------------------------------------

from msrest.serialization import Model


class DatasetDefinition(Model):
"""DatasetDefinition.

All required parameters must be populated in order to send to Azure.

:param data_import_kind: Required. The kind of the dataset (e.g. acoustic
data, language data ...). Possible values include: 'None', 'Language',
'Acoustic', 'Pronunciation', 'CustomVoice', 'LanguageGeneration'
:type data_import_kind: str or
~azure.cognitiveservices.speechservices.models.enum
:param name: Required. The name of the object
:type name: str
:param description: The description of the object
:type description: str
:param properties: The custom properties of this entity
:type properties: dict[str, str]
:param locale: The locale of the contained data
:type locale: str
"""

_validation = {
'data_import_kind': {'required': True},
'name': {'required': True},
}

_attribute_map = {
'data_import_kind': {'key': 'dataImportKind', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'description': {'key': 'description', 'type': 'str'},
'properties': {'key': 'properties', 'type': '{str}'},
'locale': {'key': 'locale', 'type': 'str'},
}

def __init__(self, **kwargs):
super(DatasetDefinition, self).__init__(**kwargs)
self.data_import_kind = kwargs.get('data_import_kind', None)
self.name = kwargs.get('name', None)
self.description = kwargs.get('description', None)
self.properties = kwargs.get('properties', None)
self.locale = kwargs.get('locale', None)
Loading