2020-07-01 15:22:07 +08:00

54 lines
1.1 KiB
JavaScript

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
}
}
}
});