diff --git a/flutter/sherpa_onnx/lib/src/sherpa_onnx_bindings.dart b/flutter/sherpa_onnx/lib/src/sherpa_onnx_bindings.dart index d8219841c..7685f4f2d 100644 --- a/flutter/sherpa_onnx/lib/src/sherpa_onnx_bindings.dart +++ b/flutter/sherpa_onnx/lib/src/sherpa_onnx_bindings.dart @@ -489,7 +489,7 @@ typedef SherpaOnnxCreateOnlineStreamWithHotwords typedef IsOnlineStreamReadyNative = Int32 Function( Pointer, Pointer); -typedef SherpaOnnxIsOnlineStreamReady = int Function( +typedef IsOnlineStreamReady = int Function( Pointer, Pointer); typedef SherpaOnnxDecodeOnlineStreamNative = Void Function( @@ -841,7 +841,7 @@ class SherpaOnnxBindings { static SherpaOnnxCreateOnlineStreamWithHotwords? createOnlineStreamWithHotwords; - static SherpaOnnxIsOnlineStreamReady? isOnlineStreamReady; + static IsOnlineStreamReady? isOnlineStreamReady; static SherpaOnnxDecodeOnlineStream? decodeOnlineStream; @@ -1096,7 +1096,7 @@ class SherpaOnnxBindings { .asFunction(); isOnlineStreamReady ??= dynamicLibrary - .lookup>( + .lookup>( 'SherpaOnnxIsOnlineStreamReady') .asFunction(); @@ -1115,7 +1115,8 @@ class SherpaOnnxBindings { .asFunction(); isEndpoint ??= dynamicLibrary - .lookup>('SherpaOnnxIsEndpoint') + .lookup>( + 'SherpaOnnxOnlineStreamIsEndpoint') .asFunction(); destroyOnlineStreamResultJson ??= dynamicLibrary