Skip to content

Instantly share code, notes, and snippets.

@kognate
Created March 3, 2017 16:31
Show Gist options
  • Save kognate/d53ff23e1bf8885b536216e998925e02 to your computer and use it in GitHub Desktop.
Save kognate/d53ff23e1bf8885b536216e998925e02 to your computer and use it in GitHub Desktop.
{
"models": [
{
"language": "fr-FR",
"name": "fr-FR_BroadbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": false
},
"description": "French broadband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/fr-FR_BroadbandModel",
"rate": 16000
},
{
"language": "en-US",
"name": "en-US_NarrowbandModel",
"supported_features": {
"speaker_labels": true,
"custom_language_model": true
},
"description": "US English narrowband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/en-US_NarrowbandModel",
"rate": 8000
},
{
"language": "pt-BR",
"name": "pt-BR_BroadbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": false
},
"description": "Brazilian Portuguese broadband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/pt-BR_BroadbandModel",
"rate": 16000
},
{
"language": "en-UK",
"name": "en-UK_BroadbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": false
},
"description": "UK English broadband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/en-UK_BroadbandModel",
"rate": 16000
},
{
"language": "zh-CN",
"name": "zh-CN_BroadbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": false
},
"description": "Mandarin broadband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/zh-CN_BroadbandModel",
"rate": 16000
},
{
"language": "ja-JP",
"name": "ja-JP_BroadbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": true
},
"description": "Japanese broadband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/ja-JP_BroadbandModel",
"rate": 16000
},
{
"language": "pt-BR",
"name": "pt-BR_NarrowbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": false
},
"description": "Brazilian Portuguese narrowband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/pt-BR_NarrowbandModel",
"rate": 8000
},
{
"language": "es-ES",
"name": "es-ES_BroadbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": false
},
"description": "Spanish broadband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/es-ES_BroadbandModel",
"rate": 16000
},
{
"language": "ar-AR",
"name": "ar-AR_BroadbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": false
},
"description": "Modern Standard Arabic broadband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/ar-AR_BroadbandModel",
"rate": 16000
},
{
"language": "zh-CN",
"name": "zh-CN_NarrowbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": false
},
"description": "Mandarin narrowband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/zh-CN_NarrowbandModel",
"rate": 8000
},
{
"language": "ja-JP",
"name": "ja-JP_NarrowbandModel",
"supported_features": {
"speaker_labels": true,
"custom_language_model": true
},
"description": "Japanese narrowband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/ja-JP_NarrowbandModel",
"rate": 8000
},
{
"language": "es-ES",
"name": "es-ES_NarrowbandModel",
"supported_features": {
"speaker_labels": true,
"custom_language_model": false
},
"description": "Spanish narrowband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/es-ES_NarrowbandModel",
"rate": 8000
},
{
"language": "en-UK",
"name": "en-UK_NarrowbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": false
},
"description": "UK English narrowband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/en-UK_NarrowbandModel",
"rate": 8000
},
{
"language": "en-US",
"name": "en-US_BroadbandModel",
"supported_features": {
"speaker_labels": false,
"custom_language_model": true
},
"description": "US English broadband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/en-US_BroadbandModel",
"rate": 16000
}
]
}
{
"sessions": "https://stream.watsonplatform.net/speech-to-text/api/v1/sessions?model=en-US_BroadbandModel",
"language": "en-US",
"rate": 16000,
"supported_features": {
"speaker_labels": false,
"custom_language_model": true
},
"description": "US English broadband model.",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/en-US_BroadbandModel",
"name": "en-US_BroadbandModel"
}
{
"results": [
{
"final": true,
"alternatives": [
{
"confidence": 0.893,
"word_confidence": [
[
"today",
1.0
],
[
"I",
1.0
],
[
"have",
1.0
],
[
"been",
1.0
],
[
"playing",
1.0
],
[
"with",
0.979
],
[
"IBM",
1.0
],
[
"Watson",
0.553
]
],
"transcript": "today I have been playing with IBM Watson ",
"timestamps": [
[
"today",
0.14,
0.56
],
[
"I",
0.56,
0.78
],
[
"have",
0.78,
0.97
],
[
"been",
0.97,
1.13
],
[
"playing",
1.13,
1.62
],
[
"with",
1.62,
1.85
],
[
"IBM",
1.88,
2.45
],
[
"Watson",
2.45,
3.15
]
]
}
]
},
{
"final": true,
"alternatives": [
{
"confidence": 0.894,
"word_confidence": [
[
"IBM",
0.736
],
[
"Watson",
0.808
],
[
"is",
1.0
],
[
"a",
0.955
],
[
"supercomputer",
0.725
],
[
"me",
0.678
],
[
"by",
0.95
],
[
"the",
1.0
],
[
"IBM",
1.0
],
[
"corporation",
1.0
],
[
"based",
1.0
],
[
"in",
0.742
],
[
"Armonk",
1.0
],
[
"New",
1.0
],
[
"York",
0.995
]
],
"transcript": "IBM Watson is a supercomputer me by the IBM corporation based in Armonk New York ",
"timestamps": [
[
"IBM",
3.96,
4.44
],
[
"Watson",
4.44,
5.0
],
[
"is",
5.0,
5.32
],
[
"a",
5.32,
5.61
],
[
"supercomputer",
5.61,
6.66
],
[
"me",
6.69,
7.15
],
[
"by",
7.18,
7.35
],
[
"the",
7.35,
7.53
],
[
"IBM",
7.53,
8.07
],
[
"corporation",
8.07,
8.98
],
[
"based",
9.34,
9.76
],
[
"in",
9.76,
9.92
],
[
"Armonk",
10.0,
10.7
],
[
"New",
10.7,
10.88
],
[
"York",
10.88,
11.41
]
]
}
]
}
],
"result_index": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment