Skip to content

Commit bbf95a9

Browse files
committedAug 22, 2018
fix: speech engine
1 parent 5002057 commit bbf95a9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed
 

‎src/renderer/views/Translate.tsx

+2-1
Original file line numberDiff line numberDiff line change
@@ -337,9 +337,10 @@ export default class Translate extends Vue {
337337

338338
public async speak(type: 'source' | 'target') {
339339
const { value: text, key: from } = this[type];
340+
const [, com] = this.translateParams;
340341
if (text) {
341342
this[type].action = false;
342-
const uri = await tjs.google.audio({ text, from, com: true });
343+
const uri = await tjs.google.audio({ text, from, com });
343344
await Tools.sleep(600);
344345
if (text === this[type].value) {
345346
this.audio.src = uri;

0 commit comments

Comments
 (0)