public ServiceCall < AcousticModels > listAcousticModels ( ListAcousticModelsOptions listAcousticModelsOptions ) { String [ ] pathSegments = { "v1/acoustic_customizations" } ; RequestBuilder builder = RequestBuilder . get ( RequestBuilder . constructHttpUrl ( getEndPoint ( ) , pathSegments ) ) ; Map < String , String > sdkHeaders = SdkCommon . getSdkHeaders ( "speech_to_text" , "v1" , "listAcousticModels" ) ; for ( Entry < String , String > header : sdkHeaders . entrySet ( ) ) { builder . header ( header . getKey ( ) , header . getValue ( ) ) ; } builder . header ( "Accept" , "application/json" ) ; if ( listAcousticModelsOptions != null ) { if ( listAcousticModelsOptions . language ( ) != null ) { builder . query ( "language" , listAcousticModelsOptions . language ( ) ) ; } } return createServiceCall ( builder . build ( ) , ResponseConverterUtils . getObject ( AcousticModels . class ) ) ; }
List custom acoustic models .