Languages

Menu
Sites
Language
Sppech to text feature

Hello everyone,

I would like to ask you is there any speech to text implementation/API on Tizen for the web app?

BR.

Responses

7 Replies
Alex Ashirov

Hello,

Please take a look at the following topic:

https://developer.tizen.org/forums/web-application-development/x-webkit-speech

Alex Dem

Hi,
I did not find anything regarding STT development for Web in 2.2.1 (only for Native) also.
Alexey.

karray gargouri

Hi,

I found a javscript library for the voice recognition (annyang), and I started ti test it through this example:

 

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum- scale=1.0">
<meta name="description" content="Tizen basic template generated by Tizen Web IDE"/>

<title>Tizen Web IDE - Tizen - Tizen basic Application</title>

<link rel="stylesheet" type="text/css" href="css/style.css"/>
<script src="js/main.js"></script>
<script src="js/annyang.min.js"></script>
<script>
window.onload = function(){
/* if (annyang) {
    var commands = {
        'Good': function() {
            alert('Hi! I can hear you.');
        }
    };
    annyang.addCommands(commands);
    annyang.start(); 
}*/

if (annyang) {
console.log("Enter");
  // Let's define a command.
  var commands = {
   'ok watch': function() { alert("My alert"); }
 };


 annyang.debug();
// Add our commands to annyang
 annyang.addCommands(commands);

// Start listening.
annyang.start();
    }
    else {
    alert("Error alert");
      }
 }
</script>
</head>

<body>

</body>
</html>

the problem is that this code works on the web simulator but not on the emulator (I got the error alert message)!

What is the problem?

karray gargouri

is true that "Tizen doesnt support x-webkit-speech. It works only in latest chrome browsers."?

and since The Web-Framework is based on WebKit, why my code above didn't work on the emulator!?

Marco Buettner

You can try to use https://developer.tizen.org/dev-guide/2.2.1/org.tizen.web.appprogramming/html/guide/ui_guide/ui_framework_accessibility.htm

David Jay

I've found that the best bet is to record audio on the Gear, transfer it to the phone, then upload it to a STT server (which is a bit of a pain, and which makes for a slow process.) I'm looking into ways to stream audio directly to the phone, but accessing the mediaStream for the microphone appears to be trickier than anticipated.

karray gargouri

hi,

I found this code:

function gotStream(stream) {
    navigator.tizCamera.createCameraControl(stream, gotCamera, noCamera);
	var streamUrl = window.webkitURL.createObjectURL(stream);
	console.log(streamUrl);
}

and the "console.log(streamUrl);" instruction give me :

blob:file:///b3eae5e1-58fa-4d53-921c-c4141aa69a03

 

Do you have any suggestions? Thanks in advance.