@edkimmel/expo-audio-stream 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/.eslintrc.js +5 -0
  2. package/.yarnrc.yml +8 -0
  3. package/NATIVE_EVENTS.md +270 -0
  4. package/README.md +289 -0
  5. package/android/build.gradle +92 -0
  6. package/android/src/main/AndroidManifest.xml +4 -0
  7. package/android/src/main/java/expo/modules/audiostream/AudioDataEncoder.kt +178 -0
  8. package/android/src/main/java/expo/modules/audiostream/AudioEffectsManager.kt +107 -0
  9. package/android/src/main/java/expo/modules/audiostream/AudioPlaybackManager.kt +651 -0
  10. package/android/src/main/java/expo/modules/audiostream/AudioRecorderManager.kt +509 -0
  11. package/android/src/main/java/expo/modules/audiostream/Constants.kt +21 -0
  12. package/android/src/main/java/expo/modules/audiostream/EventSender.kt +7 -0
  13. package/android/src/main/java/expo/modules/audiostream/ExpoAudioStreamView.kt +7 -0
  14. package/android/src/main/java/expo/modules/audiostream/ExpoPlayAudioStreamModule.kt +280 -0
  15. package/android/src/main/java/expo/modules/audiostream/PermissionUtils.kt +16 -0
  16. package/android/src/main/java/expo/modules/audiostream/RecordingConfig.kt +60 -0
  17. package/android/src/main/java/expo/modules/audiostream/SoundConfig.kt +46 -0
  18. package/android/src/main/java/expo/modules/audiostream/pipeline/AudioPipeline.kt +685 -0
  19. package/android/src/main/java/expo/modules/audiostream/pipeline/JitterBuffer.kt +227 -0
  20. package/android/src/main/java/expo/modules/audiostream/pipeline/PipelineIntegration.kt +315 -0
  21. package/app.plugin.js +1 -0
  22. package/build/ExpoPlayAudioStreamModule.d.ts +3 -0
  23. package/build/ExpoPlayAudioStreamModule.d.ts.map +1 -0
  24. package/build/ExpoPlayAudioStreamModule.js +5 -0
  25. package/build/ExpoPlayAudioStreamModule.js.map +1 -0
  26. package/build/events.d.ts +36 -0
  27. package/build/events.d.ts.map +1 -0
  28. package/build/events.js +25 -0
  29. package/build/events.js.map +1 -0
  30. package/build/index.d.ts +125 -0
  31. package/build/index.d.ts.map +1 -0
  32. package/build/index.js +222 -0
  33. package/build/index.js.map +1 -0
  34. package/build/pipeline/index.d.ts +81 -0
  35. package/build/pipeline/index.d.ts.map +1 -0
  36. package/build/pipeline/index.js +140 -0
  37. package/build/pipeline/index.js.map +1 -0
  38. package/build/pipeline/types.d.ts +132 -0
  39. package/build/pipeline/types.d.ts.map +1 -0
  40. package/build/pipeline/types.js +5 -0
  41. package/build/pipeline/types.js.map +1 -0
  42. package/build/types.d.ts +221 -0
  43. package/build/types.d.ts.map +1 -0
  44. package/build/types.js +10 -0
  45. package/build/types.js.map +1 -0
  46. package/expo-module.config.json +9 -0
  47. package/ios/AudioPipeline.swift +562 -0
  48. package/ios/AudioUtils.swift +356 -0
  49. package/ios/ExpoPlayAudioStream.podspec +27 -0
  50. package/ios/ExpoPlayAudioStreamModule.swift +436 -0
  51. package/ios/ExpoPlayAudioStreamView.swift +7 -0
  52. package/ios/JitterBuffer.swift +208 -0
  53. package/ios/Logger.swift +7 -0
  54. package/ios/Microphone.swift +221 -0
  55. package/ios/MicrophoneDataDelegate.swift +4 -0
  56. package/ios/PipelineIntegration.swift +214 -0
  57. package/ios/RecordingResult.swift +10 -0
  58. package/ios/RecordingSettings.swift +11 -0
  59. package/ios/SharedAudioEngine.swift +484 -0
  60. package/ios/SoundConfig.swift +45 -0
  61. package/ios/SoundPlayer.swift +408 -0
  62. package/ios/SoundPlayerDelegate.swift +7 -0
  63. package/package.json +49 -0
  64. package/plugin/build/index.d.ts +5 -0
  65. package/plugin/build/index.js +28 -0
  66. package/plugin/src/index.ts +53 -0
  67. package/plugin/tsconfig.json +9 -0
  68. package/plugin/tsconfig.tsbuildinfo +1 -0
  69. package/src/ExpoPlayAudioStreamModule.ts +5 -0
  70. package/src/events.ts +66 -0
  71. package/src/index.ts +359 -0
  72. package/src/pipeline/index.ts +216 -0
  73. package/src/pipeline/types.ts +169 -0
  74. package/src/types.ts +270 -0
  75. package/tsconfig.json +9 -0
@@ -0,0 +1,132 @@
1
+ import { PlaybackMode } from "../types";
2
+ /** Options passed to `connectPipeline()`. */
3
+ export interface ConnectPipelineOptions {
4
+ /** Sample rate in Hz (default 24000). */
5
+ sampleRate?: number;
6
+ /** Number of channels — 1 = mono, 2 = stereo (default 1). */
7
+ channelCount?: number;
8
+ /**
9
+ * How many ms of audio to accumulate in the jitter buffer before the
10
+ * priming gate opens and audio begins playing (default 80).
11
+ */
12
+ targetBufferMs?: number;
13
+ /**
14
+ * Playback mode hint for native optimizations. Affects thread priority and
15
+ */
16
+ playbackMode?: PlaybackMode;
17
+ }
18
+ /** Result returned from a successful `connectPipeline()` call. */
19
+ export interface ConnectPipelineResult {
20
+ sampleRate: number;
21
+ channelCount: number;
22
+ targetBufferMs: number;
23
+ /**
24
+ * Frame size in samples derived from the device HAL's
25
+ * `AudioTrack.getMinBufferSize()`. Useful for understanding the write
26
+ * granularity on the native side.
27
+ */
28
+ frameSizeSamples: number;
29
+ }
30
+ /** Options passed to `pushPipelineAudio()` / `pushPipelineAudioSync()`. */
31
+ export interface PushPipelineAudioOptions {
32
+ /** Base64-encoded PCM 16-bit signed LE audio data. */
33
+ audio: string;
34
+ /** Conversation turn identifier. */
35
+ turnId: string;
36
+ /** True if this is the first chunk of a new turn (resets jitter buffer). */
37
+ isFirstChunk?: boolean;
38
+ /** True if this is the final chunk of the current turn (marks end-of-stream). */
39
+ isLastChunk?: boolean;
40
+ }
41
+ /** Options passed to `invalidatePipelineTurn()`. */
42
+ export interface InvalidatePipelineTurnOptions {
43
+ /** The new turn identifier — stale audio for the old turn is discarded. */
44
+ turnId: string;
45
+ }
46
+ /**
47
+ * Pipeline states reported via `PipelineStateChanged` events.
48
+ *
49
+ * - `idle` — connected but no audio flowing
50
+ * - `connecting` — AudioTrack being created, focus being requested
51
+ * - `streaming` — actively receiving and playing audio
52
+ * - `draining` — end-of-stream marked, playing remaining buffer
53
+ * - `error` — unrecoverable error (zombie, write failure, etc.)
54
+ */
55
+ export type PipelineState = 'idle' | 'connecting' | 'streaming' | 'draining' | 'error';
56
+ /** Payload for `PipelineStateChanged`. */
57
+ export interface PipelineStateChangedEvent {
58
+ state: PipelineState;
59
+ }
60
+ /** Payload for `PipelinePlaybackStarted`. */
61
+ export interface PipelinePlaybackStartedEvent {
62
+ turnId: string;
63
+ }
64
+ /** Payload for `PipelineError`. */
65
+ export interface PipelineErrorEvent {
66
+ code: string;
67
+ message: string;
68
+ }
69
+ /** Payload for `PipelineZombieDetected`. */
70
+ export interface PipelineZombieDetectedEvent {
71
+ playbackHead: number;
72
+ stalledMs: number;
73
+ }
74
+ /** Payload for `PipelineUnderrun`. */
75
+ export interface PipelineUnderrunEvent {
76
+ count: number;
77
+ }
78
+ /** Payload for `PipelineDrained`. */
79
+ export interface PipelineDrainedEvent {
80
+ turnId: string;
81
+ }
82
+ /** Payload for `PipelineAudioFocusLost` (empty — presence is the signal). */
83
+ export type PipelineAudioFocusLostEvent = Record<string, never>;
84
+ /** Payload for `PipelineAudioFocusResumed` (empty — presence is the signal). */
85
+ export type PipelineAudioFocusResumedEvent = Record<string, never>;
86
+ /**
87
+ * Map of all pipeline event names to their payload types.
88
+ * Used with `Pipeline.subscribe<K>()` for type-safe event subscriptions.
89
+ */
90
+ export interface PipelineEventMap {
91
+ PipelineStateChanged: PipelineStateChangedEvent;
92
+ PipelinePlaybackStarted: PipelinePlaybackStartedEvent;
93
+ PipelineError: PipelineErrorEvent;
94
+ PipelineZombieDetected: PipelineZombieDetectedEvent;
95
+ PipelineUnderrun: PipelineUnderrunEvent;
96
+ PipelineDrained: PipelineDrainedEvent;
97
+ PipelineAudioFocusLost: PipelineAudioFocusLostEvent;
98
+ PipelineAudioFocusResumed: PipelineAudioFocusResumedEvent;
99
+ }
100
+ /** Union of all pipeline event name strings. */
101
+ export type PipelineEventName = keyof PipelineEventMap;
102
+ /** Jitter buffer telemetry counters. */
103
+ export interface PipelineBufferTelemetry {
104
+ /** Current buffer level in milliseconds. */
105
+ bufferMs: number;
106
+ /** Current buffer level in samples. */
107
+ bufferSamples: number;
108
+ /** Whether the priming gate has opened. */
109
+ primed: boolean;
110
+ /** Total samples written by the producer since last reset. */
111
+ totalWritten: number;
112
+ /** Total samples read by the consumer since last reset. */
113
+ totalRead: number;
114
+ /** Number of underrun events. */
115
+ underrunCount: number;
116
+ /** Peak buffer level in samples. */
117
+ peakLevel: number;
118
+ }
119
+ /** Full pipeline telemetry snapshot. */
120
+ export interface PipelineTelemetry extends PipelineBufferTelemetry {
121
+ /** Current pipeline state. */
122
+ state: PipelineState;
123
+ /** Total pushAudio/pushAudioSync calls since connect. */
124
+ totalPushCalls: number;
125
+ /** Total bytes pushed since connect. */
126
+ totalPushBytes: number;
127
+ /** Total write-loop iterations since connect. */
128
+ totalWriteLoops: number;
129
+ /** Current turn identifier. */
130
+ turnId: string;
131
+ }
132
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../src/pipeline/types.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAIxC,6CAA6C;AAC7C,MAAM,WAAW,sBAAsB;IACrC,yCAAyC;IACzC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,6DAA6D;IAC7D,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;CAC7B;AAED,kEAAkE;AAClE,MAAM,WAAW,qBAAqB;IACpC,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,gBAAgB,EAAE,MAAM,CAAC;CAC1B;AAID,2EAA2E;AAC3E,MAAM,WAAW,wBAAwB;IACvC,sDAAsD;IACtD,KAAK,EAAE,MAAM,CAA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pD,gBAAgB,EAAE,qBAAqB,CAAC;IACxC,eAAe,EAAE,oBAAoB,CAAC;IACtC,sBAAsB,EAAE,2BAA2B,CAAC;IACpD,yBAAyB,EAAE,8BAA8B,CAAC;CAC3D;AAED,gDAAgD;AAChD,MAAM,MAAM,iBAAiB,GAAG,MAAM,gBAAgB,CAAC;AAIvD,wCAAwC;AACxC,MAAM,WAAW,uBAAuB;IACtC,4CAA4C;IAC5C,QAAQ,EAAE,MAAM,CAAC;IACjB,uCAAuC;IACvC,aAAa,EAAE,MAAM,CAAC;IACtB,2CAA2C;IAC3C,MAAM,EAAE,OAAO,CAAC;IAChB,8DAA8D;IAC9D,YAAY,EAAE,MAAM,CAAC;IACrB,2DAA2D;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,iCAAiC;IACjC,aAAa,EAAE,MAAM,CAAC;IACtB,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,wCAAwC;AACxC,MAAM,WAAW,iBAAkB,SAAQ,uBAAuB;IAChE,8BAA8B;IAC9B,KAAK,EAAE,aAAa,CAAC;IACrB,yDAAyD;IACzD,cAAc,EAAE,MAAM,CAAC;IACvB,wCAAwC;IACxC,cAAc,EAAE,MAAM,CAAC;IACvB,iDAAiD;IACjD,eAAe,EAAE,MAAM,CAAC;IACxB,+BAA+B;IAC/B,MAAM,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,5 @@
1
+ // ────────────────────────────────────────────────────────────────────────────
2
+ // Native Audio Pipeline — V3 TypeScript Types
3
+ // ────────────────────────────────────────────────────────────────────────────
4
+ export {};
5
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/pipeline/types.ts"],"names":[],"mappings":"AAAA,+EAA+E;AAC/E,8CAA8C;AAC9C,+EAA+E","sourcesContent":["// ────────────────────────────────────────────────────────────────────────────\n// Native Audio Pipeline — V3 TypeScript Types\n// ────────────────────────────────────────────────────────────────────────────\n\nimport { PlaybackMode } from \"../types\";\n\n// ── Connect ─────────────────────────────────────────────────────────────────\n\n/** Options passed to `connectPipeline()`. */\nexport interface ConnectPipelineOptions {\n /** Sample rate in Hz (default 24000). */\n sampleRate?: number;\n /** Number of channels — 1 = mono, 2 = stereo (default 1). */\n channelCount?: number;\n /**\n * How many ms of audio to accumulate in the jitter buffer before the\n * priming gate opens and audio begins playing (default 80).\n */\n targetBufferMs?: number;\n /**\n * Playback mode hint for native optimizations. Affects thread priority and\n */\n playbackMode?: PlaybackMode;\n}\n\n/** Result returned from a successful `connectPipeline()` call. */\nexport interface ConnectPipelineResult {\n sampleRate: number;\n channelCount: number;\n targetBufferMs: number;\n /**\n * Frame size in samples derived from the device HAL's\n * `AudioTrack.getMinBufferSize()`. Useful for understanding the write\n * granularity on the native side.\n */\n frameSizeSamples: number;\n}\n\n// ── Push Audio ──────────────────────────────────────────────────────────────\n\n/** Options passed to `pushPipelineAudio()` / `pushPipelineAudioSync()`. */\nexport interface PushPipelineAudioOptions {\n /** Base64-encoded PCM 16-bit signed LE audio data. */\n audio: string;\n /** Conversation turn identifier. */\n turnId: string;\n /** True if this is the first chunk of a new turn (resets jitter buffer). */\n isFirstChunk?: boolean;\n /** True if this is the final chunk of the current turn (marks end-of-stream). */\n isLastChunk?: boolean;\n}\n\n// ── Invalidate Turn ─────────────────────────────────────────────────────────\n\n/** Options passed to `invalidatePipelineTurn()`. */\nexport interface InvalidatePipelineTurnOptions {\n /** The new turn identifier — stale audio for the old turn is discarded. */\n turnId: string;\n}\n\n// ── State ───────────────────────────────────────────────────────────────────\n\n/**\n * Pipeline states reported via `PipelineStateChanged` events.\n *\n * - `idle` — connected but no audio flowing\n * - `connecting` — AudioTrack being created, focus being requested\n * - `streaming` — actively receiving and playing audio\n * - `draining` — end-of-stream marked, playing remaining buffer\n * - `error` — unrecoverable error (zombie, write failure, etc.)\n */\nexport type PipelineState =\n | 'idle'\n | 'connecting'\n | 'streaming'\n | 'draining'\n | 'error';\n\n// ── Events ──────────────────────────────────────────────────────────────────\n\n/** Payload for `PipelineStateChanged`. */\nexport interface PipelineStateChangedEvent {\n state: PipelineState;\n}\n\n/** Payload for `PipelinePlaybackStarted`. */\nexport interface PipelinePlaybackStartedEvent {\n turnId: string;\n}\n\n/** Payload for `PipelineError`. */\nexport interface PipelineErrorEvent {\n code: string;\n message: string;\n}\n\n/** Payload for `PipelineZombieDetected`. */\nexport interface PipelineZombieDetectedEvent {\n playbackHead: number;\n stalledMs: number;\n}\n\n/** Payload for `PipelineUnderrun`. */\nexport interface PipelineUnderrunEvent {\n count: number;\n}\n\n/** Payload for `PipelineDrained`. */\nexport interface PipelineDrainedEvent {\n turnId: string;\n}\n\n/** Payload for `PipelineAudioFocusLost` (empty — presence is the signal). */\nexport type PipelineAudioFocusLostEvent = Record<string, never>;\n\n/** Payload for `PipelineAudioFocusResumed` (empty — presence is the signal). */\nexport type PipelineAudioFocusResumedEvent = Record<string, never>;\n\n/**\n * Map of all pipeline event names to their payload types.\n * Used with `Pipeline.subscribe<K>()` for type-safe event subscriptions.\n */\nexport interface PipelineEventMap {\n PipelineStateChanged: PipelineStateChangedEvent;\n PipelinePlaybackStarted: PipelinePlaybackStartedEvent;\n PipelineError: PipelineErrorEvent;\n PipelineZombieDetected: PipelineZombieDetectedEvent;\n PipelineUnderrun: PipelineUnderrunEvent;\n PipelineDrained: PipelineDrainedEvent;\n PipelineAudioFocusLost: PipelineAudioFocusLostEvent;\n PipelineAudioFocusResumed: PipelineAudioFocusResumedEvent;\n}\n\n/** Union of all pipeline event name strings. */\nexport type PipelineEventName = keyof PipelineEventMap;\n\n// ── Telemetry ───────────────────────────────────────────────────────────────\n\n/** Jitter buffer telemetry counters. */\nexport interface PipelineBufferTelemetry {\n /** Current buffer level in milliseconds. */\n bufferMs: number;\n /** Current buffer level in samples. */\n bufferSamples: number;\n /** Whether the priming gate has opened. */\n primed: boolean;\n /** Total samples written by the producer since last reset. */\n totalWritten: number;\n /** Total samples read by the consumer since last reset. */\n totalRead: number;\n /** Number of underrun events. */\n underrunCount: number;\n /** Peak buffer level in samples. */\n peakLevel: number;\n}\n\n/** Full pipeline telemetry snapshot. */\nexport interface PipelineTelemetry extends PipelineBufferTelemetry {\n /** Current pipeline state. */\n state: PipelineState;\n /** Total pushAudio/pushAudioSync calls since connect. */\n totalPushCalls: number;\n /** Total bytes pushed since connect. */\n totalPushBytes: number;\n /** Total write-loop iterations since connect. */\n totalWriteLoops: number;\n /** Current turn identifier. */\n turnId: string;\n}\n"]}
@@ -0,0 +1,221 @@
1
+ export type RecordingEncodingType = 'pcm_32bit' | 'pcm_16bit' | 'pcm_8bit';
2
+ export type SampleRate = 16000 | 24000 | 44100 | 48000;
3
+ export type BitDepth = 8 | 16 | 32;
4
+ export declare const PlaybackModes: {
5
+ readonly REGULAR: "regular";
6
+ readonly VOICE_PROCESSING: "voiceProcessing";
7
+ readonly CONVERSATION: "conversation";
8
+ };
9
+ /**
10
+ * Defines different playback modes for audio processing
11
+ */
12
+ export type PlaybackMode = (typeof PlaybackModes)[keyof typeof PlaybackModes];
13
+ /**
14
+ * Configuration for audio playback settings
15
+ */
16
+ export interface SoundConfig {
17
+ /**
18
+ * The sample rate for audio playback in Hz
19
+ */
20
+ sampleRate?: SampleRate;
21
+ /**
22
+ * The playback mode (regular, voiceProcessing, or conversation)
23
+ */
24
+ playbackMode?: PlaybackMode;
25
+ /**
26
+ * When true, resets to default configuration regardless of other parameters
27
+ */
28
+ useDefault?: boolean;
29
+ /**
30
+ * Enable jitter buffering for audio streams
31
+ */
32
+ enableBuffering?: boolean;
33
+ /**
34
+ * Automatically enable buffering based on network conditions
35
+ */
36
+ autoBuffer?: boolean;
37
+ /**
38
+ * Configuration for the jitter buffer when enableBuffering is true
39
+ */
40
+ bufferConfig?: Partial<IAudioBufferConfig>;
41
+ }
42
+ /**
43
+ * Configuration for buffered audio streaming
44
+ */
45
+ export interface BufferedStreamConfig {
46
+ /**
47
+ * Turn ID for queue management
48
+ */
49
+ turnId: string;
50
+ /**
51
+ * Audio encoding format
52
+ */
53
+ encoding?: Encoding;
54
+ /**
55
+ * Buffer configuration options
56
+ */
57
+ bufferConfig?: Partial<IAudioBufferConfig>;
58
+ /**
59
+ * Callback for buffer health updates
60
+ */
61
+ onBufferHealth?: (metrics: IBufferHealthMetrics) => void;
62
+ }
63
+ export declare const EncodingTypes: {
64
+ readonly PCM_F32LE: "pcm_f32le";
65
+ readonly PCM_S16LE: "pcm_s16le";
66
+ };
67
+ /**
68
+ * Defines different encoding formats for audio data
69
+ */
70
+ export type Encoding = (typeof EncodingTypes)[keyof typeof EncodingTypes];
71
+ /**
72
+ * Smart buffering mode options
73
+ */
74
+ export type SmartBufferMode = 'conservative' | 'balanced' | 'aggressive' | 'adaptive';
75
+ /**
76
+ * Network condition indicators for smart buffering
77
+ */
78
+ export interface NetworkConditions {
79
+ latency?: number;
80
+ jitter?: number;
81
+ packetLoss?: number;
82
+ bandwidth?: number;
83
+ }
84
+ /**
85
+ * Smart buffering configuration
86
+ */
87
+ export interface SmartBufferConfig {
88
+ mode: SmartBufferMode;
89
+ networkConditions?: NetworkConditions;
90
+ adaptiveThresholds?: {
91
+ highLatencyMs?: number;
92
+ highJitterMs?: number;
93
+ packetLossPercent?: number;
94
+ };
95
+ }
96
+ export interface StartRecordingResult {
97
+ fileUri: string;
98
+ mimeType: string;
99
+ channels?: number;
100
+ bitDepth?: BitDepth;
101
+ sampleRate?: SampleRate;
102
+ }
103
+ export interface AudioDataEvent {
104
+ data: string | Float32Array;
105
+ data16kHz?: string | Float32Array;
106
+ position: number;
107
+ fileUri: string;
108
+ eventDataSize: number;
109
+ totalSize: number;
110
+ soundLevel?: number;
111
+ }
112
+ export interface RecordingConfig {
113
+ sampleRate?: SampleRate;
114
+ channels?: 1 | 2;
115
+ encoding?: RecordingEncodingType;
116
+ interval?: number;
117
+ enableProcessing?: boolean;
118
+ pointsPerSecond?: number;
119
+ onAudioStream?: (event: AudioDataEvent) => Promise<void>;
120
+ }
121
+ export interface Chunk {
122
+ text: string;
123
+ timestamp: [number, number | null];
124
+ }
125
+ export interface TranscriberData {
126
+ id: string;
127
+ isBusy: boolean;
128
+ text: string;
129
+ startTime: number;
130
+ endTime: number;
131
+ chunks: Chunk[];
132
+ }
133
+ export interface AudioRecording {
134
+ fileUri: string;
135
+ filename: string;
136
+ durationMs: number;
137
+ size: number;
138
+ channels: number;
139
+ bitDepth: BitDepth;
140
+ sampleRate: SampleRate;
141
+ mimeType: string;
142
+ transcripts?: TranscriberData[];
143
+ wavPCMData?: Float32Array;
144
+ }
145
+ /**
146
+ * Configuration for audio buffer management
147
+ */
148
+ export interface IAudioBufferConfig {
149
+ targetBufferMs: number;
150
+ minBufferMs: number;
151
+ maxBufferMs: number;
152
+ frameIntervalMs: number;
153
+ }
154
+ /**
155
+ * Audio payload for playback containing base64 encoded audio data
156
+ */
157
+ export interface IAudioPlayPayload {
158
+ audioData: string;
159
+ isFirst?: boolean;
160
+ isFinal?: boolean;
161
+ }
162
+ /**
163
+ * Processed audio frame with metadata
164
+ */
165
+ export interface IAudioFrame {
166
+ sequenceNumber: number;
167
+ data: IAudioPlayPayload;
168
+ duration: number;
169
+ timestamp: number;
170
+ }
171
+ /**
172
+ * Buffer health states for quality monitoring
173
+ */
174
+ export type BufferHealthState = 'idle' | 'healthy' | 'degraded' | 'critical';
175
+ /**
176
+ * Comprehensive buffer health and quality metrics
177
+ */
178
+ export interface IBufferHealthMetrics {
179
+ currentBufferMs: number;
180
+ targetBufferMs: number;
181
+ underrunCount: number;
182
+ overrunCount: number;
183
+ averageJitter: number;
184
+ bufferHealthState: BufferHealthState;
185
+ adaptiveAdjustmentsCount: number;
186
+ }
187
+ /**
188
+ * Interface for audio buffer management
189
+ */
190
+ export interface IAudioBufferManager {
191
+ enqueueFrames(audioData: IAudioPlayPayload): void;
192
+ startPlayback(): void;
193
+ stopPlayback(): void;
194
+ isPlaying(): boolean;
195
+ getHealthMetrics(): IBufferHealthMetrics;
196
+ updateConfig(config: Partial<IAudioBufferConfig>): void;
197
+ applyAdaptiveAdjustments(): void;
198
+ destroy(): void;
199
+ getCurrentBufferMs(): number;
200
+ }
201
+ /**
202
+ * Interface for frame processing
203
+ */
204
+ export interface IFrameProcessor {
205
+ parseChunk(payload: IAudioPlayPayload): IAudioFrame[];
206
+ reset(): void;
207
+ }
208
+ /**
209
+ * Interface for quality monitoring
210
+ */
211
+ export interface IQualityMonitor {
212
+ recordFrameArrival(timestamp: number): void;
213
+ recordUnderrun(): void;
214
+ recordOverrun(): void;
215
+ updateBufferLevel(bufferMs: number): void;
216
+ getMetrics(): IBufferHealthMetrics;
217
+ getBufferHealthState(isPlaying: boolean, currentLatencyMs: number): BufferHealthState;
218
+ getRecommendedAdjustment(): number;
219
+ reset(): void;
220
+ }
221
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,qBAAqB,GAC7B,WAAW,GACX,WAAW,GACX,UAAU,CAAC;AACf,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AACvD,MAAM,MAAM,QAAQ,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,CAAC;AAEnC,eAAO,MAAM,aAAa;;;;CAIhB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,YAAY,GACtB,CAAC,OAAO,aAAa,CAAC,CAAC,MAAM,OAAO,aAAa,CAAC,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B;;OAEG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IAExB;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,CAAC;IAE5B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;IAErB;;OAEG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;IAE1B;;OAEG;IACH,UAAU,CAAC,EAAE,OAAO,CAAC;I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IACxD,wBAAwB,IAAI,IAAI,CAAC;IACjC,OAAO,IAAI,IAAI,CAAC;IAChB,kBAAkB,IAAI,MAAM,CAAC;CAC9B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,UAAU,CAAC,OAAO,EAAE,iBAAiB,GAAG,WAAW,EAAE,CAAC;IACtD,KAAK,IAAI,IAAI,CAAC;CACf;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5C,cAAc,IAAI,IAAI,CAAC;IACvB,aAAa,IAAI,IAAI,CAAC;IACtB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1C,UAAU,IAAI,oBAAoB,CAAC;IACnC,oBAAoB,CAClB,SAAS,EAAE,OAAO,EAClB,gBAAgB,EAAE,MAAM,GACvB,iBAAiB,CAAC;IACrB,wBAAwB,IAAI,MAAM,CAAC;IACnC,KAAK,IAAI,IAAI,CAAC;CACf"}
package/build/types.js ADDED
@@ -0,0 +1,10 @@
1
+ export const PlaybackModes = {
2
+ REGULAR: 'regular',
3
+ VOICE_PROCESSING: 'voiceProcessing',
4
+ CONVERSATION: 'conversation',
5
+ };
6
+ export const EncodingTypes = {
7
+ PCM_F32LE: 'pcm_f32le',
8
+ PCM_S16LE: 'pcm_s16le',
9
+ };
10
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAOA,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,OAAO,EAAE,SAAS;IAClB,gBAAgB,EAAE,iBAAiB;IACnC,YAAY,EAAE,cAAc;CACpB,CAAC;AAmEX,MAAM,CAAC,MAAM,aAAa,GAAG;IAC3B,SAAS,EAAE,WAAW;IACtB,SAAS,EAAE,WAAW;CACd,CAAC","sourcesContent":["export type RecordingEncodingType =\n | 'pcm_32bit'\n | 'pcm_16bit'\n | 'pcm_8bit';\nexport type SampleRate = 16000 | 24000 | 44100 | 48000;\nexport type BitDepth = 8 | 16 | 32;\n\nexport const PlaybackModes = {\n REGULAR: 'regular',\n VOICE_PROCESSING: 'voiceProcessing',\n CONVERSATION: 'conversation',\n} as const;\n/**\n * Defines different playback modes for audio processing\n */\nexport type PlaybackMode =\n (typeof PlaybackModes)[keyof typeof PlaybackModes];\n\n/**\n * Configuration for audio playback settings\n */\nexport interface SoundConfig {\n /**\n * The sample rate for audio playback in Hz\n */\n sampleRate?: SampleRate;\n\n /**\n * The playback mode (regular, voiceProcessing, or conversation)\n */\n playbackMode?: PlaybackMode;\n\n /**\n * When true, resets to default configuration regardless of other parameters\n */\n useDefault?: boolean;\n\n /**\n * Enable jitter buffering for audio streams\n */\n enableBuffering?: boolean;\n\n /**\n * Automatically enable buffering based on network conditions\n */\n autoBuffer?: boolean;\n\n /**\n * Configuration for the jitter buffer when enableBuffering is true\n */\n bufferConfig?: Partial<IAudioBufferConfig>;\n}\n\n/**\n * Configuration for buffered audio streaming\n */\nexport interface BufferedStreamConfig {\n /**\n * Turn ID for queue management\n */\n turnId: string;\n\n /**\n * Audio encoding format\n */\n encoding?: Encoding;\n\n /**\n * Buffer configuration options\n */\n bufferConfig?: Partial<IAudioBufferConfig>;\n\n /**\n * Callback for buffer health updates\n */\n onBufferHealth?: (metrics: IBufferHealthMetrics) => void;\n}\n\nexport const EncodingTypes = {\n PCM_F32LE: 'pcm_f32le',\n PCM_S16LE: 'pcm_s16le',\n} as const;\n\n/**\n * Defines different encoding formats for audio data\n */\nexport type Encoding =\n (typeof EncodingTypes)[keyof typeof EncodingTypes];\n\n/**\n * Smart buffering mode options\n */\nexport type SmartBufferMode =\n | 'conservative'\n | 'balanced'\n | 'aggressive'\n | 'adaptive';\n\n/**\n * Network condition indicators for smart buffering\n */\nexport interface NetworkConditions {\n latency?: number; // Round-trip time in ms\n jitter?: number; // Network jitter in ms\n packetLoss?: number; // Packet loss percentage (0-100)\n bandwidth?: number; // Available bandwidth estimate\n}\n\n/**\n * Smart buffering configuration\n */\nexport interface SmartBufferConfig {\n mode: SmartBufferMode;\n networkConditions?: NetworkConditions;\n adaptiveThresholds?: {\n highLatencyMs?: number; // Threshold to enable aggressive buffering\n highJitterMs?: number; // Threshold to increase buffer size\n packetLossPercent?: number; // Threshold to enable buffering\n };\n}\n\nexport interface StartRecordingResult {\n fileUri: string;\n mimeType: string;\n channels?: number;\n bitDepth?: BitDepth;\n sampleRate?: SampleRate;\n}\n\nexport interface AudioDataEvent {\n data: string | Float32Array;\n data16kHz?: string | Float32Array;\n position: number;\n fileUri: string;\n eventDataSize: number;\n totalSize: number;\n soundLevel?: number;\n}\n\nexport interface RecordingConfig {\n sampleRate?: SampleRate; // Sample rate for recording\n channels?: 1 | 2; // 1 or 2 (MONO or STEREO)\n encoding?: RecordingEncodingType; // Encoding type for the recording\n interval?: number; // Interval in milliseconds at which to emit recording data\n\n // Optional parameters for audio processing\n enableProcessing?: boolean; // Boolean to enable/disable audio processing (default is false)\n pointsPerSecond?: number; // Number of data points to extract per second of audio (default is 1000)\n onAudioStream?: (event: AudioDataEvent) => Promise<void>; // Callback function to handle audio stream\n}\n\nexport interface Chunk {\n text: string;\n timestamp: [number, number | null];\n}\n\nexport interface TranscriberData {\n id: string;\n isBusy: boolean;\n text: string;\n startTime: number;\n endTime: number;\n chunks: Chunk[];\n}\n\nexport interface AudioRecording {\n fileUri: string;\n filename: string;\n durationMs: number;\n size: number;\n channels: number;\n bitDepth: BitDepth;\n sampleRate: SampleRate;\n mimeType: string;\n transcripts?: TranscriberData[];\n wavPCMData?: Float32Array; // Full PCM data for the recording in WAV format (only on web, for native use the fileUri)\n}\n\n// Audio Jitter Buffer Types\n\n/**\n * Configuration for audio buffer management\n */\nexport interface IAudioBufferConfig {\n targetBufferMs: number; // Target buffer size in milliseconds\n minBufferMs: number; // Minimum buffer size before underrun handling\n maxBufferMs: number; // Maximum buffer size before overrun handling\n frameIntervalMs: number; // Expected frame interval in milliseconds\n}\n\n/**\n * Audio payload for playback containing base64 encoded audio data\n */\nexport interface IAudioPlayPayload {\n audioData: string; // Base64 encoded PCM audio data\n isFirst?: boolean; // True if this is the first chunk in a stream\n isFinal?: boolean; // True if this is the final chunk in a stream\n}\n\n/**\n * Processed audio frame with metadata\n */\nexport interface IAudioFrame {\n sequenceNumber: number; // Sequential frame number\n data: IAudioPlayPayload; // Original audio payload\n duration: number; // Estimated frame duration in milliseconds\n timestamp: number; // Frame timestamp when processed\n}\n\n/**\n * Buffer health states for quality monitoring\n */\nexport type BufferHealthState =\n | 'idle'\n | 'healthy'\n | 'degraded'\n | 'critical';\n\n/**\n * Comprehensive buffer health and quality metrics\n */\nexport interface IBufferHealthMetrics {\n currentBufferMs: number; // Current buffer level in milliseconds\n targetBufferMs: number; // Target buffer level in milliseconds\n underrunCount: number; // Total number of buffer underruns\n overrunCount: number; // Total number of buffer overruns\n averageJitter: number; // Average network jitter in milliseconds\n bufferHealthState: BufferHealthState; // Current buffer health assessment\n adaptiveAdjustmentsCount: number; // Number of adaptive adjustments made\n}\n\n/**\n * Interface for audio buffer management\n */\nexport interface IAudioBufferManager {\n enqueueFrames(audioData: IAudioPlayPayload): void;\n startPlayback(): void;\n stopPlayback(): void;\n isPlaying(): boolean;\n getHealthMetrics(): IBufferHealthMetrics;\n updateConfig(config: Partial<IAudioBufferConfig>): void;\n applyAdaptiveAdjustments(): void;\n destroy(): void;\n getCurrentBufferMs(): number;\n}\n\n/**\n * Interface for frame processing\n */\nexport interface IFrameProcessor {\n parseChunk(payload: IAudioPlayPayload): IAudioFrame[];\n reset(): void;\n}\n\n/**\n * Interface for quality monitoring\n */\nexport interface IQualityMonitor {\n recordFrameArrival(timestamp: number): void;\n recordUnderrun(): void;\n recordOverrun(): void;\n updateBufferLevel(bufferMs: number): void;\n getMetrics(): IBufferHealthMetrics;\n getBufferHealthState(\n isPlaying: boolean,\n currentLatencyMs: number\n ): BufferHealthState;\n getRecommendedAdjustment(): number;\n reset(): void;\n}\n"]}
@@ -0,0 +1,9 @@
1
+ {
2
+ "platforms": ["ios", "android"],
3
+ "ios": {
4
+ "modules": ["ExpoPlayAudioStreamModule"]
5
+ },
6
+ "android": {
7
+ "modules": ["expo.modules.audiostream.ExpoPlayAudioStreamModule"]
8
+ }
9
+ }