@@ -51,7 +51,7 @@ public partial class SpeechToTextService : WatsonService, ISpeechToTextService
5151 /// <param name="smartFormatting"></param>
5252 /// <param name="speakerLabels"></param>
5353 /// <returns></returns>
54- public SpeechRecognitionResults Recognize ( string contentType , Stream audio , string transferEncoding = "" , string model = "en-US_BroadbandModel" , string customizationId = "" , bool ? continuous = null , int ? inactivityTimeout = null , string [ ] keywords = null , double ? keywordsThreshold = null , int ? maxAlternatives = null , double ? wordAlternativesThreshold = null , bool ? wordConfidence = null , bool ? timestamps = null , bool profanityFilter = false , bool ? smartFormatting = null , bool ? speakerLabels = null )
54+ public SpeechRecognitionResults Recognize ( string contentType , Stream audio , string transferEncoding = "" , string model = "en-US_BroadbandModel" , string languageCustomizationId = null , bool ? continuous = null , int ? inactivityTimeout = null , string [ ] keywords = null , double ? keywordsThreshold = null , int ? maxAlternatives = null , double ? wordAlternativesThreshold = null , bool ? wordConfidence = null , bool ? timestamps = null , bool profanityFilter = false , bool ? smartFormatting = null , bool ? speakerLabels = null , string customizationId = null )
5555 {
5656 if ( audio == null )
5757 throw new ArgumentNullException ( $ "{ nameof ( audio ) } ") ;
@@ -83,8 +83,8 @@ public SpeechRecognitionResults Recognize(string contentType, Stream audio, stri
8383 if ( ! string . IsNullOrEmpty ( transferEncoding ) )
8484 restRequest . WithHeader ( "Transfer-Encoding" , transferEncoding ) ;
8585
86- if ( ! string . IsNullOrEmpty ( customizationId ) )
87- restRequest . WithArgument ( "customization_id " , customizationId ) ;
86+ if ( ! string . IsNullOrEmpty ( languageCustomizationId ) )
87+ restRequest . WithArgument ( "language_customization_id " , languageCustomizationId ) ;
8888
8989 if ( continuous . HasValue )
9090 restRequest . WithArgument ( "continuous" , continuous . Value ) ;
@@ -119,6 +119,9 @@ public SpeechRecognitionResults Recognize(string contentType, Stream audio, stri
119119 if ( speakerLabels . HasValue )
120120 restRequest . WithArgument ( "speaker_labels" , speakerLabels . Value ) ;
121121
122+ if ( ! string . IsNullOrEmpty ( customizationId ) )
123+ restRequest . WithArgument ( "customization_id" , customizationId ) ;
124+
122125 StreamContent bodyContent = new StreamContent ( audio ) ;
123126 bodyContent . Headers . Add ( "Content-Type" , contentType ) ;
124127
0 commit comments