Skip to content

Commit e8801ea

Browse files
committed
feat(voice): export new resilience symbols from package barrel
Consumers can now import from @framers/agentos/voice-pipeline: VoicePipelineError, AggregateVoiceError HealthyProvider, ProviderCapabilities, defaultCapabilities CircuitBreaker AudioRingBuffer TranscriptDedupe VoiceMetricsReporter StreamingSTTChain, StreamingTTSChain createVoiceProvidersFromEnv, NoVoiceProvidersAvailableError 247 voice-pipeline tests pass across 27 spec files. Task 13/17.
1 parent 4cffb37 commit e8801ea

2 files changed

Lines changed: 62 additions & 0 deletions

File tree

src/voice-pipeline/index.ts

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,4 +129,52 @@ export {
129129
ElevenLabsStreamingTTS,
130130
type ElevenLabsStreamingTTSConfig,
131131
AgentSessionVoiceAdapter,
132+
StreamingSTTChain,
133+
type StreamingSTTChainOptions,
134+
type ProviderSelectedEvent,
135+
type ProviderFailedEvent,
136+
type ProviderFailoverEvent,
137+
StreamingTTSChain,
138+
type StreamingTTSChainOptions,
139+
type TTSProviderSelectedEvent,
140+
type TTSProviderFailedEvent,
141+
type TTSProviderFailoverEvent,
132142
} from './providers/index.js';
143+
144+
// Resilience primitives
145+
export {
146+
VoicePipelineError,
147+
AggregateVoiceError,
148+
type HealthErrorClass,
149+
type VoicePipelineErrorInit,
150+
} from './VoicePipelineError.js';
151+
export {
152+
type HealthyProvider,
153+
type ProviderCapabilities,
154+
type HealthCheckResult,
155+
defaultCapabilities,
156+
supportsLanguage,
157+
} from './HealthyProvider.js';
158+
export {
159+
CircuitBreaker,
160+
type BreakerState,
161+
type CircuitBreakerOptions,
162+
type StateChangeEvent,
163+
} from './CircuitBreaker.js';
164+
export { AudioRingBuffer, type AudioRingBufferOptions } from './AudioRingBuffer.js';
165+
export {
166+
TranscriptDedupe,
167+
type TranscriptObservation,
168+
type DedupeResult,
169+
} from './TranscriptDedupe.js';
170+
export {
171+
VoiceMetricsReporter,
172+
type VoiceMetricEvent,
173+
type VoiceMetricListener,
174+
} from './VoiceMetricsReporter.js';
175+
export {
176+
createVoiceProvidersFromEnv,
177+
NoVoiceProvidersAvailableError,
178+
type VoiceProviderEnvConfig,
179+
type VoiceProviderBundle,
180+
} from './env-constructor.js';

src/voice-pipeline/providers/index.ts

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,17 @@ export { OpenAIBatchTTS, type OpenAIBatchTTSConfig } from './OpenAIBatchTTS.js';
2424
export { ElevenLabsBatchTTS, type ElevenLabsBatchTTSConfig } from './ElevenLabsBatchTTS.js';
2525
export { BatchTTSFallback } from './BatchTTSFallback.js';
2626
export { OpenAIRealtimeTTS, type OpenAIRealtimeTTSConfig } from './OpenAIRealtimeTTS.js';
27+
export {
28+
StreamingSTTChain,
29+
type StreamingSTTChainOptions,
30+
type ProviderSelectedEvent,
31+
type ProviderFailedEvent,
32+
type ProviderFailoverEvent,
33+
} from './StreamingSTTChain.js';
34+
export {
35+
StreamingTTSChain,
36+
type StreamingTTSChainOptions,
37+
type TTSProviderSelectedEvent,
38+
type TTSProviderFailedEvent,
39+
type TTSProviderFailoverEvent,
40+
} from './StreamingTTSChain.js';

0 commit comments

Comments
 (0)