@absolutejs/voice 0.0.22-beta.627 → 0.0.22-beta.629

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.
@@ -839,6 +839,7 @@ export type VoicePluginConfig<TContext = unknown, TSession extends VoiceSessionR
839
839
  sttLifecycle?: VoiceSTTLifecycle;
840
840
  realtime?: RealtimeAdapter;
841
841
  realtimeInputFormat?: AudioFormat;
842
+ recording?: VoiceSessionRecordingConfig;
842
843
  tts?: TTSAdapter;
843
844
  session: VoiceSessionStore<NoInfer<TSession>>;
844
845
  reconnect?: VoiceReconnectConfig;
package/dist/index.js CHANGED
@@ -4733,6 +4733,15 @@ var createVoiceSession = (options) => {
4733
4733
  error: toError(error).message,
4734
4734
  sessionId: options.id
4735
4735
  });
4736
+ await appendTrace({
4737
+ payload: {
4738
+ channel,
4739
+ error: toError(error).message,
4740
+ sessionId: options.id,
4741
+ sizeBytes: merged.byteLength
4742
+ },
4743
+ type: "recording.failed"
4744
+ });
4736
4745
  } finally {
4737
4746
  recordingBuffers[channel] = [];
4738
4747
  recordingByteTotals[channel] = 0;
@@ -40076,6 +40085,7 @@ var voice = (config) => {
40076
40085
  costTelephony: config.costTelephony,
40077
40086
  realtime: config.realtime,
40078
40087
  realtimeInputFormat: config.realtimeInputFormat,
40088
+ recording: config.recording,
40079
40089
  stt: config.stt,
40080
40090
  sttFallback: sessionOptions.sttFallback,
40081
40091
  sttLifecycle: sessionOptions.sttLifecycle,
@@ -7053,6 +7053,15 @@ var createVoiceSession = (options) => {
7053
7053
  error: toError(error).message,
7054
7054
  sessionId: options.id
7055
7055
  });
7056
+ await appendTrace({
7057
+ payload: {
7058
+ channel,
7059
+ error: toError(error).message,
7060
+ sessionId: options.id,
7061
+ sizeBytes: merged.byteLength
7062
+ },
7063
+ type: "recording.failed"
7064
+ });
7056
7065
  } finally {
7057
7066
  recordingBuffers[channel] = [];
7058
7067
  recordingByteTotals[channel] = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@absolutejs/voice",
3
- "version": "0.0.22-beta.627",
3
+ "version": "0.0.22-beta.629",
4
4
  "description": "Voice primitives and Elysia plugin for AbsoluteJS",
5
5
  "repository": {
6
6
  "type": "git",