feat(mobile): expand TTS voices and align App SDK
This commit is contained in:
@@ -26,10 +26,11 @@ const preferenceRuntime = async (storage = new Map()) => {
|
||||
test('播报音色按租户和账号隔离保存,非法值回退跟随场景', async () => {
|
||||
const storage = new Map();
|
||||
const runtime = await preferenceRuntime(storage);
|
||||
const extendedVoice = 'qwen-audio-3.0-tts-flash-longyingmuyu';
|
||||
|
||||
assert.equal(runtime.getTtsVoicePreference('000000', '13800000000'), '');
|
||||
assert.equal(runtime.setTtsVoicePreference('000000', '13800000000', 'longanhuan_v3.6'), 'longanhuan_v3.6');
|
||||
assert.equal(runtime.getTtsVoicePreference('000000', '13800000000'), 'longanhuan_v3.6');
|
||||
assert.equal(runtime.setTtsVoicePreference('000000', '13800000000', extendedVoice), extendedVoice);
|
||||
assert.equal(runtime.getTtsVoicePreference('000000', '13800000000'), extendedVoice);
|
||||
assert.equal(runtime.getTtsVoicePreference('000000', '13900000000'), '');
|
||||
assert.equal(runtime.setTtsVoicePreference('000000', '13800000000', 'untrusted-voice'), '');
|
||||
assert.equal(runtime.setTtsDialectPreference('000000', '13800000000', 'shanghai'), 'shanghai');
|
||||
|
||||
Reference in New Issue
Block a user