Skip to content
Merged
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
Binary file added public/audio/it-IT_BroadbandModel_sample1.wav
Binary file not shown.
Binary file added public/audio/it-IT_BroadbandModel_sample2.wav
Binary file not shown.
Binary file added public/audio/it-IT_NarrowbandModel_sample1.wav
Binary file not shown.
Binary file added public/audio/it-IT_NarrowbandModel_sample2.wav
Binary file not shown.
6 changes: 6 additions & 0 deletions src/data/beta-models.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[
"it-IT_BroadbandModel",
"it-IT_NarrowbandModel",
"nl-NL_NarrowbandModel",
"nl-NL_BroadbandModel"
]
27 changes: 24 additions & 3 deletions src/data/models.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
{
"//note 1": "This file is just a temporary cache. Any changes you make here will be lost as soon as model-dropdown.jsx loads an update list from Watson.",
"//note 2": "model-dropdown.jsx only loads the *public* models. Any customizations you create will not be included in that list.",

"name": "fr-FR_BroadbandModel",
"language": "fr-FR",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/fr-FR_BroadbandModel",
Expand Down Expand Up @@ -219,9 +218,31 @@
"supported_features": {
"custom_language_model": true,
"speaker_labels": true
},
},
"description": "US English Short Form narrowband model."
},
{
"name": "it-IT_BroadbandModel",
"language": "it-IT",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/it-IT_BroadbandModel",
"rate": 16000,
"supported_features": {
"custom_language_model": false,
"speaker_labels": false
},
"description": "Italian broadband model."
},
{
"name": "it-IT_NarrowbandModel",
"language": "it-IT",
"url": "https://stream.watsonplatform.net/speech-to-text/api/v1/models/it-IT_NarrowbandModel",
"rate": 8000,
"supported_features": {
"custom_language_model": false,
"speaker_labels": false
},
"description": "Italian narrowband model."
},
{
"name": "nl-NL_BroadbandModel",
"language": "nl-NL",
Expand All @@ -244,4 +265,4 @@
},
"description": "Dutch narrowband model."
}
]
]
24 changes: 24 additions & 0 deletions src/data/samples.json
Original file line number Diff line number Diff line change
Expand Up @@ -472,5 +472,29 @@
"keywords": "optimaliseren, klantervaring, de organisaties",
"speaker_labels": true
}
],
"it-IT_BroadbandModel": [
{
"filename": "it-IT_BroadbandModel_sample1.wav",
"keywords": "assistente, intelligenza, tecnologia",
"speaker_labels": false
},
{
"filename": "it-IT_BroadbandModel_sample2.wav",
"keywords": "fatura, bolette, pagamento",
"speaker_labels": false
}
],
"it-IT_NarrowbandModel": [
{
"filename": "it-IT_NarrowbandModel_sample1.wav",
"keywords": "assistente, intelligenza, tecnologia",
"speaker_labels": false
},
{
"filename": "it-IT_NarrowbandModel_sample2.wav",
"keywords": "fatura, bolette, pagamento",
"speaker_labels": false
}
]
}
5 changes: 4 additions & 1 deletion views/model-dropdown.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import SpeechToText from 'watson-speech/speech-to-text';
// load time. Once we have a token, this component will automatically fetch the current list
// of models and update the UI if necessary.
import cachedModels from '../src/data/models.json';
import betaModels from '../src/data/beta-models.json';


export class ModelDropdown extends Component {
Expand Down Expand Up @@ -49,7 +50,9 @@ export class ModelDropdown extends Component {
.map(m => (
<option value={m.name} key={m.name}>{m.description.replace(/\.$/, '')}
{' '}
({m.rate / 1000}KHz)
{betaModels.some(b => b === m.name) ? '(Beta)' : ''}
{' '}
({m.rate / 1000}KHz)
</option>));

return (
Expand Down