Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add custom speech apis #13013

Merged
merged 35 commits into from
Mar 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
35 commits
Select commit Hold shift + click to select a range
961e99d
Add custom speech apis
bexxx Feb 17, 2021
07226d2
make prettier
bexxx Feb 17, 2021
be05477
Fix spelling issues and add custom words
bexxx Feb 17, 2021
d8c1b95
Provide readme.md
bexxx Feb 17, 2021
5a3156e
added go and js sdk
bexxx Feb 17, 2021
a1478e9
adding typescript
bexxx Feb 17, 2021
a80a372
make tag more verbose
bexxx Feb 18, 2021
9f06074
fix duplicate schema names
bexxx Feb 18, 2021
92cddc4
do not use anonymous type
bexxx Feb 18, 2021
763c0b2
name dictionaries
bexxx Feb 18, 2021
039edfa
Extract inline schemas
bexxx Feb 18, 2021
f4bb77e
prettify again
bexxx Feb 18, 2021
d126676
do not leak internal enum values
bexxx Feb 18, 2021
b4503fe
suppress v2 incorrectly cased property names
bexxx Feb 18, 2021
6c7eee5
add suppressions for linter and clean up v2 schema
bexxx Feb 18, 2021
bb3ef91
fix go tags
bexxx Feb 18, 2021
79643c8
more go readme cleanups
bexxx Feb 18, 2021
37092f4
remove sdk generation
bexxx Feb 19, 2021
e45d61f
do not use allof for schema references.
bexxx Feb 19, 2021
1704556
adding examples
bexxx Mar 3, 2021
3a64719
prettify
bexxx Mar 3, 2021
ef79424
Merge branch 'master' into bexxx/addCustomSpeechApis
bexxx Mar 3, 2021
1f6217e
remove spaces in example file names
bexxx Mar 3, 2021
7736656
use correct examples extension name
bexxx Mar 3, 2021
0fea52e
Added updated examples
bexxx Mar 3, 2021
b67d44b
Fix file name
bexxx Mar 3, 2021
b3fedef
Fix 204 response body
bexxx Mar 3, 2021
b06a349
more fixes and prettier
bexxx Mar 3, 2021
f071c46
Fix response example
bexxx Mar 3, 2021
2667849
moar fixes
bexxx Mar 3, 2021
d63f9ef
fix json issue
bexxx Mar 4, 2021
9687c95
remove secret
bexxx Mar 4, 2021
8e358d4
add health status example
bexxx Mar 4, 2021
35bdb34
fixed encoding
bexxx Mar 4, 2021
dea9bc4
fix upload examples
bexxx Mar 5, 2021
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
8 changes: 8 additions & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ accesskey
accesspoint
accountid
accountname
accuracytests
ACLs
aclspec
acquisitionid
Expand Down Expand Up @@ -135,6 +136,7 @@ asyncinfo
asyncoperation
atascada
attestationcollateral
audiodata
Auditd
australiaeast
australiasoutheast
Expand Down Expand Up @@ -380,6 +382,7 @@ contoso
contosodataset
contosomedia
cooldown
copyto
Corda
coreml
Corent
Expand Down Expand Up @@ -765,6 +768,7 @@ hdinsight
Headnode
healthbot
healthcareapis
healthstatus
Heatbeat
heatmap
HHMM
Expand Down Expand Up @@ -935,6 +939,7 @@ labelset
labservices
LACNIC
Lajolla
languagedata
largefacelists
largepersongroups
lastfile
Expand Down Expand Up @@ -1666,6 +1671,8 @@ sparkr
sparql
SPDX
specversion
speechtotext
speechservicesmanagement
SQLAG
sqldatabase
SQLDB
Expand Down Expand Up @@ -1721,6 +1728,7 @@ streamingjobs
streamingservice
subcause
subcomponent
subcomponents
subdir
subdomain
subexpressions
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Cognitive Services SpeechToText SDKs

> see https://aka.ms/autorest

Configuration for generating SpeechToText SDK.

The current release for the SpeechToText is `release_3_0`.

``` yaml
tag: release_3_0
add-credentials: true
openapi-type: data-plane
```

# Releases

## SpeechToText 2.0
These settings apply only when `--tag=release_2_0` is specified on the command line.

``` yaml $(tag) == 'release_2_0'
input-file: stable/v2.0/speechtotext.json
```

AutoRest-Linter Suppressions

``` yaml
# Ignore autorest-linter issues that cannot be resolve without updates to the API implementation
directive:
- suppress: DefinitionsPropertiesNamesCamelCase
reason: Changing casing will break existing clients/consumers
- suppress: GuidUsage
reason: Changing casing will break existing clients/consumers
```

---

## SpeechToText 3.0
These settings apply only when `--tag=release_3_0` is specified on the command line.

``` yaml $(tag) == 'release_3_0'
input-file: stable/v3.0/speechtotext.json
```

AutoRest-Linter Suppressions

``` yaml
# Ignore autorest-linter issues that cannot be resolve without updates to the API implementation
directive:
- suppress: LongRunningOperationsWithLongRunningExtension
reason: Does not apply in those two places. The method is a DELETE which lazily deletes blobs, so it's Accepted, not NoContent.
```
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"Endpoint": "https://westus.api.cognitive.microsoft.com/",
"Ocp-Apim-Subscription-Key": "{API Key}",
"testDefinition": {
"models": [
{
"id": "685b5e3a-e5c0-45ae-8c8a-86b50cabd3ea"
},
{
"id": "15fde948-c8b7-4484-a610-07d4ddc69fad"
}
],
"dataset": {
"id": "5d2b9da6-e687-47b3-bb71-140a4d1ca3d5"
},
"name": "Accuracy test",
"description": "This is an accuracy test"
},
"Content-Type": "application/json"
},
"responses": {
"401": {
"headers": {},
"body": {
"code": "Unauthorized",
"message": "Authentication is required to access the resource."
}
},
"403": {
"headers": {},
"body": {
"code": "Forbidden",
"message": "No permission to access this resource."
}
},
"429": {
"headers": {},
"body": {
"code": "TooManyRequests",
"message": "The rate limit has been reached. The timeout in seconds can be found in the Retry-After header."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"Endpoint": "https://westus.api.cognitive.microsoft.com/",
"Ocp-Apim-Subscription-Key": "{API Key}",
"endpointDefinition": {
"models": [
{
"id": "d7295e5c-089f-44ab-99b0-73c17ffc3ae0"
}
],
"concurrentRecognitions": 1,
"contentLoggingEnabled": false,
"locale": "en-US",
"name": "Speech endpoint definition",
"description": "This is a speech endpoint"
},
"Content-Type": "application/json"
},
"responses": {
"202": {
"headers": {}
},
"400": {
"headers": {},
"body": {
"code": "BadRequest",
"message": "The request has been incorrect."
}
},
"401": {
"headers": {},
"body": {
"code": "Unauthorized",
"message": "Authentication is required to access the resource."
}
},
"403": {
"headers": {},
"body": {
"code": "Forbidden",
"message": "No permission to access this resource."
}
},
"429": {
"headers": {},
"body": {
"code": "TooManyRequests",
"message": "The rate limit has been reached. The timeout in seconds can be found in the Retry-After header."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
{
"parameters": {
"Endpoint": "https://westus.api.cognitive.microsoft.com/",
"Ocp-Apim-Subscription-Key": "{API Key}",
"endpointId": "afa0669c-a01e-4693-ae3a-93baf40f26d6",
"endpointDataDefinition": {
"startDate": "2018-12-08T00:00:00Z",
"endDate": "2019-01-07T00:00:00Z"
},
"Content-Type": "application/json"
},
"responses": {
"202": {
"headers": {}
},
"400": {
"headers": {},
"body": {
"code": "BadRequest",
"message": "The request has been incorrect."
}
},
"401": {
"headers": {},
"body": {
"code": "Unauthorized",
"message": "Authentication is required to access the resource."
}
},
"403": {
"headers": {},
"body": {
"code": "Forbidden",
"message": "No permission to access this resource."
}
},
"404": {
"headers": {},
"body": {
"code": "NotFound",
"message": "The specified entity cannot be found."
}
},
"429": {
"headers": {},
"body": {
"code": "TooManyRequests",
"message": "The rate limit has been reached. The timeout in seconds can be found in the Retry-After header."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"Endpoint": "https://westus.api.cognitive.microsoft.com/",
"Ocp-Apim-Subscription-Key": "{API Key}",
"modelDefinition": {
"modelKind": "Language",
"baseModel": {
"id": "f2842de0-fc16-4858-8391-e3fd1efb6980"
},
"datasets": [
{
"id": "a712c3ba-0e49-4059-a17f-0465426514c7"
}
],
"locale": "en-US",
"name": "Language model",
"description": "This is a language model definition"
},
"Content-Type": "application/json"
},
"responses": {
"202": {
"headers": {}
},
"400": {
"headers": {},
"body": {
"code": "BadRequest",
"message": "The request has been incorrect."
}
},
"401": {
"headers": {},
"body": {
"code": "Unauthorized",
"message": "Authentication is required to access the resource."
}
},
"403": {
"headers": {},
"body": {
"code": "Forbidden",
"message": "No permission to access this resource."
}
},
"429": {
"headers": {},
"body": {
"code": "TooManyRequests",
"message": "The rate limit has been reached. The timeout in seconds can be found in the Retry-After header."
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{
"parameters": {
"Endpoint": "https://westus.api.cognitive.microsoft.com/",
"Ocp-Apim-Subscription-Key": "{API Key}",
"transcription": {
"recordingsUrl": "https://contoso.com/mystoragelocation",
"models": [],
"locale": "en-US",
"name": "Transcription using locale en-US",
"description": "An optional description of the transcription.",
"properties": {
"AddWordLevelTimestamps": "True",
"AddDiarization": "True",
"AddSentiment": "True",
"ProfanityFilterMode": "Masked",
"PunctuationMode": "DictatedAndAutomatic"
}
},
"Content-Type": "application/json"
},
"responses": {
"202": {
"headers": {}
},
"400": {
"headers": {},
"body": {
"code": "BadRequest",
"message": "The request has been incorrect."
}
},
"401": {
"headers": {},
"body": {
"code": "Unauthorized",
"message": "Authentication is required to access the resource."
}
},
"403": {
"headers": {},
"body": {
"code": "Forbidden",
"message": "No permission to access this resource."
}
},
"429": {
"headers": {},
"body": {
"code": "TooManyRequests",
"message": "The rate limit has been reached. The timeout in seconds can be found in the Retry-After header."
}
}
}
}
Loading