UNPKG

@voiceflow/voiceflow-types

Version:

Voiceflow 'voiceflow' project types

13 lines (12 loc) 601 B
import { VoiceVersion } from '@voiceflow/voice-types'; import { Voice } from '../../constants/index.js'; import { defaultSharedVoiceSettings, defaultVoiceSettings } from './settings.js'; export * from './settings.js'; export const defaultSharedVoicePlatformData = ({ settings, ...data }) => ({ ...VoiceVersion.defaultPlatformData(data, { defaultPromptVoice: Voice.DEFAULT }), settings: defaultSharedVoiceSettings(settings), }); export const defaultVoicePlatformData = ({ settings, ...data }) => ({ ...defaultSharedVoicePlatformData(data), settings: defaultVoiceSettings(settings), });