Offline voice recognition functionality? - windows-phone-8.1

If anyone has any input on if it is possible to include offline voice recognition in Windows Phone 8.1 or Windows UWP 10 I would appreciate any input! The online functionality works great for windows phone 8.1, but the app I am developing will need to be used offline in some cases.

The short answer to your question is no.
Predefined grammars like dictation grammar and web-search grammars are online. They can't work offline.
These predefined grammars can be used to recognize up to 10 seconds of speech input and require no authoring effort on your part. However, they do require connection to a network.
I don't know the details of your requirement. But you can try to use Custom grammars like Programmatic list constraints and SRGS grammar to implement it as they can work without Internet. For more info, please see Speech interactions and the official Speech recognition and synthesis sample in GitHub.
Also you can vote on UserVoice to ask for the offline voice recognition feature.

Related

Bluetooth Programming in Windows Phone 8

Surprisingly, there are hardly any extensive resources on the Internet regarding Bluetooth programming for Windows Phone. The sample on MSDN
just shows you how to search for paired devices, and that's pretty much where all the online guides terminate.
I need some kind of tutorial or resource which explains the ins and outs of actually transferring and receiving data from other devices via Bluetooth. In specific, I want to establish communication between an rfduino and a Windows Phone but really any generalized guide will suffice as long as it clearly explains the various classes involved (PeerInformation, PeerFinder, StreamSocket) and the protocol used.
So far all I've come across is an outdated toolkit called 32Feet. It has accompanying video tutorials but they're manually handling threading; I'm guessing this was before C# introduced async and await.
Is there a modern toolkit/resource out there for Windows PHone Bluetooth programming?

Windows Apps Universal, XAML or JavaScript

I am embarking on my first windows phone app. I noticed there are two templates one is in Javascript (Blank App (Universal Apps)) and the other in C# (XAML) again Blank App (Universal Apps). Which one should I use, I know it depends a lot on the project context, but basically its just a simple phone app, that reads and displays data, mostly crud operations. Any help is appreciated.
I think there are a lot of resources in the internet regarding this question.
For example:
http://www.itwriting.com/blog/8350-xaml-and-c-or-html-and-winjs-for-windows-store-universal-and-cross-platform-apps.html
http://www.neowin.net/news/microsoft-likes-winjs-for-making-windows-8-apps-but-most-developers-prefer-xaml
https://softwareengineering.stackexchange.com/questions/156361/advantages-and-disadvantages-to-using-xaml-c-or-html5-javascipt-for-metro-apps
If you have a C#/.NET background, choose XAML - if you have a web background, choose WinJS...
I think that XAML is more popular than WinJS (especially for Windows Phone).
Here's my take to add to the list--http://www.kraigbrockschmidt.com/2013/01/17/html-javascript-xaml-directx-language-windows-store-app/ . In my partner-facing role at Microsoft I got this question quite a bit, and it really boils down to personal preference and experience unless you run into a place where the languages don't quite have parity at present. Parity was more of an issue in Windows 8, many areas were resolved for Windows 8.1. (Parity is more a matter between Windows/Windows Phone now rather than between the languages.)
Personally, being the author of Programming Windows Store Apps with HTML, CSS, and JavaScript, Second Edition (free ebook, Microsoft Press, 2014), I like the JS approach very much because you can leverage standards. On the downside, JS code is the least secure of all the options (see this blog post of mine), which might be a make-or-break consideration.

voice based translation from one language to another in windows phone os

My project is to do a translator based on the voice only .The user need to give the input in the form of voice in their native language. Then the system need to produce the translation in the user preferred language. The problem for is the i don't know how to set the voice recognition in different language . please help me. thanks in advance i am doing this in windows phone 8 .
There are APIs for Windows Phone, but you will need to use two to accomplish what you are trying to do. First, you need to use the speech recognition to convert the speech to text. Then, run this through the Microsoft Translator to translate to another language. Note that for the speech recognition, you should query for the appropriate speech recognizer for the language that is spoken.
See the following links:
Speech Recognition
Microsoft Translator
There's an example here of how to build the Windows Phone 8 app for Translator:
http://blogs.msdn.com/b/translation/p/windowsphone8.aspx
You could use this with voice-captured instead of text-entered input.

WP8 voice commands work only on emulator

I've written a WP8 app that accepts voice commands. I've deployed and tested on the emulator and everything works fine.
However, when deploying and testing on my HTC 8X the voice commands aren't detected, they don't even appear in the 'What can I say' option.
Anyone come across this before? Appreciate the help.
My guess is that the VCD CommandSet xml:lang attribute doesn't match the language and region combination used on your phone. What's the xml:lang for the CommandSets in your VCD file? And what's the language and region used by your phone?The default VoiceCommandDefinition1.xml file defaults to xml:lang="en-US", so is your phone set to the English Language in the US region?
From a development perspective, you'll have to specify a CommandSet for each xml:lang supported by your app.
Also, remember that speech recognition only works for 15-20 cultures (language+region combinations). It could be your phone is one of the unsupported locales and you won't be able to support speech recognition for that culture at all.

Windows phone 7 and HTML5

I'm completely new to Windows Phone and the Windows galaxy in general as far as programming goes. For a project of a phone app that has to run on a windows phone, I started exploring the resources and I have some questions.
One of the problems I encountered is that things change very quickly. For example, answers to this question say that browsers in Windows Phone will most likely not support HTML5. However, there are many online tutorials (for instance here) introducing ASP.NET MVC 4 and how it is appropriate for mobile apps.
I would personally like to go the "HTML5+javascript" way instead of learning how to develop with Silverlight, which apparently has been discontinued by Microsoft. However, my first concern is evidently to be able to create an application that works!
So with that in mind, my questions are the following:
My impression is that HTML5+JS is being introduced in replacement of Silverlight and will be more used in the future. Is that correct?
Knowing that I have to build an app which should be able to play videos and audio, record audio, and connect to a library to do some speech processing in the background, should I use Silverlight or can I try using ASP.NET MVC 4? (From what I gather, Silverlight would be better than XNA)
Are there limitations to using HTML5+JS as compared to Silverlight or the other way around?
Can you package a web app (i.e. using HTML5+JS) to be used locally on the phone if there is no access to a distant server?
Any specific pointers or answers on these specific issues will be more than welcome! :)
Currently, Windows Phone 7.1 does not support full HTML5+JS as a replacement for Silverlight. In Windows 8 (NOT the next version of windows phone, but the next version of Microsoft's desktop OS), HTML5+JS is presented as an alternative to using XAML and C# (it's a little confusing because on Windows 8, "metro" apps do not run Silverlight, but they still operate using XAML and C#). But that's neither here nor there... To summarily answer your question(s): In the phone's browser, there is very limited HTML5 capability.
From what you've described, you definitely want to use Silverlight for your Windows Phone app. The answer to that part of your question has never changed, Silverlight from the beginning of WP7 would be your best option. XNA is exclusively designed for gaming development.
To answer all of your questions, point by point:
My impression is that HTML5+JS is being introduced in replacement of
Silverlight and will be more used in the future. Is that correct?
This has not been confirmed (as of this post), but speculation is that this will be the case in some future release of the OS (no word on when that may be). But no, this is not currently an option, and there is no promise from Microsoft that it ever will be.
Knowing that I have to build an app which should be able to play
videos and audio, record audio, and connect to a library to do some
speech processing in the background, should I use Silverlight or can I
try using ASP.NET MVC 4? (From what I gather, Silverlight would be
better than XNA)
Silverlight. Silverlight. Silverlight. :) ASP.NET + MVC will not work. XNA is intended to be used for building games. Attempting to build more standard user interfaces using it would give you a migraine to say the least, and would not look anywhere near good.
Are there limitations to using HTML5+JS as compared to Silverlight or the other way around?
and
Can you package a web app (i.e. using HTML5+JS) to be used locally on the phone if there is > no access to a distant server?
As answered above, there is no way to do this on the phone.
As for pointers on all of this. I strongly encourage you to simply google (or bing if you're into that kind of thing) "getting started with windows phone" or "windows phone tutorials". Best source I could point you to is the Windows Phone Developer website. It's got some great tutorials that don't assume you know lots about windows phone. Best to get this material from Microsoft. It'll be more reliable, more well written, and ultimatly more useful. I've been writing Windows Phone apps since before the phone was released, and I still use it for learning the basics of something new. Great place.