I'm trying to use voice command service in windows phone 8.1 application, but I can't find the appropriate namespace (Windows.Phone.Speech).
Is it only available in wp8 or Silverlight ?
Thanks a lot!
I ran across this question while looking for the answer to this myself today; so hopefully this will help someone else.
Yes! It does exist in Windows Phone 8.1 (WinRT). It is now called VoiceCommandManager however, and is under Windows.Media.SpeechRecognition:
https://msdn.microsoft.com/en-us/library/windows.media.speechrecognition.voicecommandmanager.aspx
Noting also that they are deprecating this in Windows 10 (there is a note to that effect on the page), which probably accounts for why this was so hard to track down. I also found this handy sample project:
https://code.msdn.microsoft.com/windowsapps/Voice-Commands-for-Windows-2f808ac6/
Related
I have a Windows phone 8.1 Silverlight application.
Now I need to make it run also on windows 10 phones and tablets. I checked and the app is available on windows 10 phones, even if deployed for windows 8.1 but it seems like I can't install it on windows 10 tablets.
My question is pretty simple:
Is there a "fast way" for converting the 8.1 project to UWP?
Can I deploy my app for tablets without re-writing all the code?
Thanks all
This question is oddly similar to one that I answered just yesterday. It's not really a duplicate so I will restate the answer here along with a link to the other question (1)
Unfortunately there is no easy and fully automated way to port your Silverlight app to UWP mostly because the API footprint has changed and updated between the 2 platforms. There are a lot of similarities but also a lot of breaking changes that require some manual changes.
here is Microsoft's guidance for this particular upgrade path.
From the article above:
Note This guide is designed to help you port your Windows Phone Silverlight app to Windows 10 manually. In addition to using the information in this guide to port your app, you can try the developer preview of Mobilize.NET's Silverlight Bridge to help automate the porting process. This tool analyzes your app's source code and converts references to Windows Phone Silverlight controls and APIs to their UWP counterparts. Because this tool is still in developer preview, it does not yet handle all conversion scenarios. However, most developers should be able to save some time and effort by starting with this tool. To try the developer preview, visit Mobilize.NET's website.
[1] Can a Silverlight out-of-browser app be converted to Universal Windows Platform (UWP) app?
I have a huge problem with localization in Windows Phone 8.1.
Namely, I have read all similar questions on StackOverflow, but none is applicable for Windows Phone 8.1 (all of them seem to work on 8.0 and below). The problem I have is that even though I call all of the methods mentioned in this StackOverflow article, but it does not work on Windows Phone 8.1.
The problem seems to be that either resource file does not get set to another language or the UI does not update.
Is there any newer solution to this problem?
Thanks in advance :)
We already have a working and fully functional app working on store in Windows phone 8 silverlight framework. But keeping in Mind windows 10 will be releasing soon we want to be ready. We want to migrate the app to WinRT framework. What would be the best approach to do that.
I see there are a lot of changes at the framework level but still any suggestion would be appreciated.
Thanks
Vinod
There's a MSDN article that targets the describes problem. The most interesting part is probably the mapping of silverlight namespaces to the corresponding WinRT namespaces (if available).
Here is an article about an app by Rudy Huyn to convert Silverlight application to universal apps. That could also be a great help.
From Windows XP to Windows 7, you could change the current the with the command line: (How do I change the current Windows theme programmatically?). But in Windows 8.1 (and windows 8 I suppose), it doesn't work.
The only way I can do it is with WinaeroThemeSwitcher (http://winaero.com/comment.php?comment.news.209).
How can I do it from native commands or from C#? WinaeroThemeSwitcher proves that it is possible.
I finally found how. Using ILSpy (with few corrections) helped a lot. Thank you magicandre1981.
I also found an implementation online afterwards using COM objects GUID (class ThemeManagerHelpClass):
https://github.com/opkorz/CS199_Thesis/blob/master/Implementation1/CL_Utility2.ps1
I have created a project that utilizes original libFLAC.dll code to play FLAC files on Windows Phone 8.0. It used to work both in MediaElement and in background on WP 8.0, but after updating the project to Windows Phone 8.1, the sound became flickering and the components began "stack overflow"-ing.
I have updated the project to Windows Phone 8.1 Runtime project since Silverlight 8.1 doesn't support Background Audio. Though the problems were when using both Background Audio and MediaElement in Windows Phone Runtime app.
As it seems unclear, I want to clarify: I have created a MediaStreamSource adapter that hooks Windows.Media.Core.MediaStreamSource events and does all the work. I don't use Silverlight's MediaStreamSource implementation of course.
I have created a thread on MSDN forums where one can find more details, and open-sourced the project on CodePlex so everyone can just take the source code for both WP 8.0 and WP 8.1 and see what's gone wrong.
I really hope someone could find workaround or at least make Microsoft aknowledge the problem.
Okay, so thanks to MSDN forums community an #mcosmin especially, the solution was found and it is pretty simple.
To fix this, I simply need to set the Duration property of the MediaStreamSample, because unlike Silverlight's sample, WinRT's sample cannot calculate it on its own.