javascript change voice language
let utterance = new SpeechSynthesisUtterance('Ciao');
utterance.lang = 'it-IT'; /*To set the voice in Italian*/
speechSynthesis.speak(utterance);
/*The value has to be in BCP 47 language tag, here is a list of all languages :
https://github.com/libyal/libfwnt/wiki/Language-Code-identifiers*/
/* Some of the principal languages :
English, United States : en-US
German, Germany : de-DE
Spanish : es-ES_tradnl
French, France : fr-FR
Japanese, Japan : ja-JP
Portuguese, Brazil : pt-BR
Russian, Russian Federation : ru-RU
Hindi, India : hi-IN
Chinese, China : zh-CN
English, United Kingdom : en-GB */
/*And don't forget to upvote answers that help you!*/
Also in JavaScript:
- how to compare previous value with current in javascript
- jquery visible
- create server and connect to db and frontend
- 14. Write a JavaScript function to find the difference of two arrays. Test Data : console.log(difference([1, 2, 3], [100, 2, 1, 10])); ["3", "10", "100"]
- javascript function expression
- sort multidimensional array javascript
- javascript create script tag
- jest mock implementation
- angular material inline list
- circumference of a circle with a radius of 23.56
- jquery create input hidden
- how to send a command in js
- initialize javascript array variable
- how to add json data to xmlhttprequest
- import jquery google cdn
- js var
- async await anonymous function
- Enclose in Brackets
- vue v-for loop array
- npm err! 503 service unavailable proxy
- change elements class javascript
- for array javascript
- open pdf in browser javascript
- javascript execute function by string name