File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Examples/ServiceExamples/Scripts Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -50,6 +50,12 @@ public class ExampleStreamingSplitSamples : MonoBehaviour
50
50
[ Tooltip ( "The IAM url used to authenticate the apikey (optional). This defaults to \" https://iam.bluemix.net/identity/token\" ." ) ]
51
51
[ SerializeField ]
52
52
private string _iamUrl ;
53
+
54
+ [ Header ( "Parameters" ) ]
55
+ // https://www.ibm.com/watson/developercloud/speech-to-text/api/v1/curl.html?curl#get-model
56
+ [ Tooltip ( "The Model to use. This defaults to en-US_BroadbandModel" ) ]
57
+ [ SerializeField ]
58
+ private string _recognizeModel ;
53
59
#endregion
54
60
55
61
private int _recordingRoutine = 0 ;
@@ -113,6 +119,7 @@ public bool Active
113
119
{
114
120
if ( value && ! _service . IsListening )
115
121
{
122
+ _service . RecognizeModel = ( string . IsNullOrEmpty ( _recognizeModel ) ? "en-US_BroadbandModel" : _recognizeModel ) ;
116
123
_service . DetectSilence = true ;
117
124
_service . EnableWordConfidence = true ;
118
125
_service . EnableTimestamps = true ;
You can’t perform that action at this time.
0 commit comments