← Back to list

Discovering Burmese Voice AI in Less Than 5 Minutes

How to recognize Burmese words with tensorflow.js

MinSiThu · 2024-01-19 16:02 · 5 claps · 1.5 min read
#audio-recognition #machine-learning #artificial-intelligence #myanmar #burmese
Open on Medium ↗
Wiki topics: ML · Machine Learning AI · AI · General EDU · Education & Learning 🎵 · Music & Audio

Discovering Burmese Voice AI in Less Than 5 Minutes

How to recognize Burmese words with tensorflow.js

Burmese Voice AI is a powerful tool that allows developers to integrate Burmese language voice recognition capabilities into web applications seamlessly. In this tutorial, we’ll guide you through the process of setting up and utilizing the Burmese Voice AI in less than 5 minutes.

Getting Started

Include Burmese Voice Library Start by including the Burmese Voice library in your HTML file using the script tag. Place this script tag in the head of your HTML file.

<script src="https://www.unpkg.com/burmese-voice"></script>

Download the Model Download the required model package from the specified location. This package contains the necessary resources for Burmese voice recognition.

[https://github.com/MinSiThu/burmese-voice/releases](https://github.com/MinSiThu/burmese-voice/releases)

Include Model Path Once downloaded, include the model path in your HTML file as an absolute path. Update the script section of your HTML file as follows:

<script src="https://www.unpkg.com/burmese-voice"></script>
<script>
let burmeseVoice;
async function main(){
   const URL = "http://localhost:8000/models/"; // must be absolute URL
   burmeseVoice = new BurmeseVoice(URL)
   await burmeseVoice.load();
   console.log(burmeseVoice.getLabels());
}
// … rest of the code …
 </script>

Initialize Burmese Voice Add a start button to your HTML file and initialize Burmese Voice when the button is clicked.

<body>
 <h1>Burmese Voice</h1>
 <button type="button" onclick="init()">Start</button>
 <button type="button" onclick="stop()">Stop</button>
 <div id="label-container"></div>
 <! - Include the Burmese Voice library again for completeness →
 <script src="https://www.unpkg.com/burmese-voice"></script>
 <script>
 // … rest of the code …
 </script>
</body>

Implement Voice Recognition Define the init() function to start voice recognition and the stop() function to stop the recognition process.

function init(){
   burmeseVoice.listen((result)=>{
   console.log(result);
   const voice = burmeseVoice.getBestResult(result.scores);
   console.log(voice);
   });
}

function stop(){
    burmeseVoice.stopListening();
}

Run the Application Save your HTML file and open it in a web browser. Click the “Start” button to initiate Burmese voice recognition. The console logs will display the recognition results.

Conclusion Congratulations! You’ve successfully integrated Burmese Voice AI into your web application. Feel free to explore more features and customization options provided by the Burmese Voice library for a tailored voice recognition experience in your projects.


메타데이터
post_id
fc7d25285d6e
slug
discovering-burmese-voice-ai-in-less-than-5-minutes-fc7d25285d6e
url
https://medium.com/@minsithu_53495/discovering-burmese-voice-ai-in-less-than-5-minutes-fc7d25285d6e
canonical_url
https://medium.com/@minsithu_53495/discovering-burmese-voice-ai-in-less-than-5-minutes-fc7d25285d6e
author_url
https://medium.com/@minsithu_53495
status
ok
fetched_at
2026-07-13 10:11:35