@opentranslate/baidu
Advanced tools
Comparing version 1.4.1 to 1.4.2
@@ -86,7 +86,6 @@ "use strict"; | ||
async textToSpeech(text, lang) { | ||
return `http://tts.baidu.com/text2audio?${qs_1.default.stringify({ | ||
return `https://fanyi.baidu.com/gettts?${qs_1.default.stringify({ | ||
lan: Baidu.langMap.get(lang !== "auto" ? lang : "zh-CN") || "zh", | ||
ie: "UTF-8", | ||
text, | ||
spd: 5, | ||
text | ||
})}`; | ||
@@ -93,0 +92,0 @@ } |
@@ -7,3 +7,3 @@ { | ||
}, | ||
"version": "1.4.1", | ||
"version": "1.4.2", | ||
"description": "Baidu translator with OpenTranslate API.", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
"dependencies": { | ||
"@opentranslate/translator": "^1.4.1", | ||
"@opentranslate/translator": "^1.4.2", | ||
"@types/md5": "^2.1.33", | ||
@@ -34,3 +34,3 @@ "@types/qs": "^6.5.3", | ||
}, | ||
"gitHead": "2be2c69401f6f1b5aed78604b4e7cc89a2c8ed5c" | ||
"gitHead": "f87484a9161a19d970e9dbb5cc29422db2366216" | ||
} |
@@ -137,11 +137,10 @@ import { | ||
async textToSpeech(text: string, lang: Language): Promise<string> { | ||
return `http://tts.baidu.com/text2audio?${qs.stringify({ | ||
return `https://fanyi.baidu.com/gettts?${qs.stringify({ | ||
lan: Baidu.langMap.get(lang !== "auto" ? lang : "zh-CN") || "zh", | ||
ie: "UTF-8", | ||
text, | ||
spd: 5, | ||
text | ||
})}`; | ||
} | ||
} | ||
} | ||
export default Baidu; |
Sorry, the diff of this file is not supported yet
16389
309
+ Addedcall-bind-apply-helpers@1.0.2(transitive)
- Removedcall-bind-apply-helpers@1.0.1(transitive)