forked from BasedHardware/omi
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
44 lines (40 loc) · 1.12 KB
/
Copy pathindex.ts
File metadata and controls
44 lines (40 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
/**
* Omi SDK for React Native
* TypeScript implementation for interacting with Omi devices
*/
// Export types and classes
export { OmiConnection } from './OmiConnection';
export { BleAudioCodec } from './types';
export {
DeviceConnectionState
} from './types';
export type {
OmiDevice,
OmiNativeModule,
AudioProcessingOptions,
AudioDataEvent,
ConnectionStateEvent
} from './types';
export { mapCodecToName } from './codecs';
/**
* Version of the Omi React Native SDK
*/
export const VERSION = '1.0.1';
/**
* Echo function that returns a greeting with the provided word
* @param word - The word to echo back
* @returns A greeting string with the provided word
*/
export const echo = (word: string): string => {
console.log('Omi SDK: Echo function called');
return `Hello from Omi SDK! You said: ${word}`;
};
// STT engines (deepgram / whisper / parakeet) — parity with Python & Swift
export {
createTranscriber,
createDeepgramTranscriber,
createParakeetTranscriber,
createWhisperTranscriber,
parakeetWsUrl,
} from './stt';
export type { SttEngine, StreamingTranscriber, TranscriptHandler } from './stt';