feat(mobile): expand TTS voices and align App SDK

This commit is contained in:
2026-07-26 17:05:43 +08:00
parent 94ee29f59c
commit f57e0a53c6
18 changed files with 1171 additions and 419 deletions
@@ -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');