Skip to content

Commit

Permalink
feat: add audio interface field (COR-000)
Browse files Browse the repository at this point in the history
  • Loading branch information
z4o4z committed Sep 23, 2024
1 parent 3065000 commit 6315513
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/base-types/src/node/text.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export interface Node extends BaseNode, NodeNextID {
export interface TextTracePayload extends BaseResponseTrace {
slate: TextData;
delay?: number;
audios?: string[];
audio?: { src: string };
}

export interface TraceFrame extends BaseTraceFrame<TextTracePayload> {
Expand Down
1 change: 1 addition & 0 deletions packages/voiceflow-types/src/version/chat/publishing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ export interface ChatPublishing extends BaseVersion.Publishing {
stylesheet?: string | string[];
persistence?: ChatPersistence;
description?: string;
audioInterface?: boolean;
}
4 changes: 3 additions & 1 deletion packages/voiceflow-types/src/version/chat/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ import { ChatVersion } from '@voiceflow/chat-types';
import type { BaseSettings } from '../base';
import { defaultBaseSettings } from '../base';

export interface SharedChatSettings extends ChatVersion.Settings {}
export interface SharedChatSettings extends ChatVersion.Settings {
defaultVoice?: string;
}

export interface ChatSettings extends SharedChatSettings, BaseSettings {}

Expand Down

0 comments on commit 6315513

Please sign in to comment.