import BaseService from '../service'; export default BaseService.extend({ modelName: 'TalkComponent', constraints: { note: { presence: true }, content: { presence: true }, }, voiceConstraints: { note: { presence: true }, voice: { presence: true } }, ttsConstraints: { text: { presence: true }, ttsVoiceActor: { presence: true }, note: { presence: true }, volume: { presence: true, numericality: { notLessThan: -500, notGreaterThan: 500 } }, speechRate: { presence: true, numericality: { notLessThan: -500, notGreaterThan: 500 } }, pitchRate: { presence: true, numericality: { notLessThan: -500, notGreaterThan: 500 } } } });