start to incorporate whisper-native
This commit is contained in:
11
specs/WhisperEngine.ts
Normal file
11
specs/WhisperEngine.ts
Normal file
@ -0,0 +1,11 @@
|
||||
import type {TurboModule} from 'react-native';
|
||||
import {TurboModuleRegistry} from 'react-native';
|
||||
|
||||
export interface Spec extends TurboModule {
|
||||
loadWhisper(path: string): void;
|
||||
translate() : void;
|
||||
}
|
||||
|
||||
export default TurboModuleRegistry.getEnforcing<Spec>(
|
||||
'NativeWhisperEngine',
|
||||
);
|
Reference in New Issue
Block a user