....................

....................

mercredi 26 février 2025

Text to speech

Malagasy Text-to-Speech

🔊 Listen to Malagasy Sentences

The following Malagasy sentences will be read aloud automatically.

Miarahaba! Inona no vaovao? (Hello! What's new?)

Faly mahafantatra anao! (Nice to meet you!)

Misaotra betsaka! (Thank you very much!)

🔍 View the Code Used

        <script>
        function speakMalagasy(text) {
            let speech = new SpeechSynthesisUtterance();
            speech.text = text;
            speech.lang = 'mg-MG'; // Malagasy language code
            speech.rate = 0.9; // Adjust speed if necessary
            window.speechSynthesis.speak(speech);
        }

        window.onload = function() {
            let sentences = [
                "Miarahaba! Inona no vaovao?",
                "Faly mahafantatra anao!",
                "Misaotra betsaka!"
            ];
            sentences.forEach((sentence, index) => {
                setTimeout(() => speakMalagasy(sentence), index * 3000);
            });
        };
        </script>