unable to add reference to windows.media.speechsynthesis.dll - windows-phone-8.1

I am working on text to speech conversion in windows 8.1 (silverlight) and i need to access the SynthesizeTextToStreamAsync method for which I need to add reference to Windows.media.speechSynthesis. I am unable to add this reference to my project
it shows me error message as
A reference to a higher version or incompatible assembly cannot be added to the project.
I am currently using Visual studio 2013 professional version. Can someone please help me out with this issue?

Look at MSDN, it is only supported in 8.1 XAML apps, not in 8.1 Silverlight apps.

Related

Errors while submitting windows phone app to the store

i was trying to submit my app to the Windows Phone Store, but i got these errors:
In Visual Studio 2013, i compiled the solution as release and not as debug. One of those Microsoft's links (the first error) suggests to add a flag to the linker, but i didn't manage to do that.
Also, the second one regards a bunch of unsupported APIs that i didn't even include in my project. Did someone face the same issue?
Thanks
Please check thirdparty libraries or you code for some API which not allowed for Windows Phone 8.1 Store Apps
For example, I added Flurry WP8.0 SDK in my WP8.1 Store App and I have the same problems. After that I removed Flurry and Store accepted my App

Windows Phone project in an universal app solution cannot have admob control

I'm creating an app using the universal app template from visual studio 2013 update 2 and I'm trying to add Admob SDK. However, when I try to compile even before adding the adView control to a page I receive an error saying that this kind of project cannot have an adcontrol.
Does anyone know a solution for this?
As for now AdMob library contains only Silverlight components. So it is not compatible with WinRT and Windows Phone 8.1 apps. The only alternative for now is Microsoft's pubCenter, which is limited to list of countries.
Also you can use AdDuplex - it is not exactly for earning but for promoting your app.

Cannot find type System.Windows.Media.AudioSink in module System.Windows.dll for windows 8

In my Windows Store Application, I am getting the error:
Cannot find type System.Windows.Media.AudioSink in module System.Windows.dll
I tried to add a reference to it, but I can't find an assembly list in my project's references.
My system:
OS - Windows 8.1
IDE - Visual studio 2013
The .NET Core for Windows Store Applications does not include all of .NET 4.5 (nor 4.5.1). It is a subset of it, meaning that not all classes are included. It also has some classes specific to it.
If you want to do audio, you should look into the Getting Started with Audio and Video tutorial that Microsoft created for this very purpose.
Also, in the future you should probably include what language you are using. There are multiple languages that Windows Store Apps can be created in (C#,C++/XAML, Javascript/HTML), and it helps to know that.

Camera command/accessibility in Visual Studio 2013

What would be the command and where is located in order to use the phone's camera capabilities?
I want to create a camera based application, and as a beginner, I don't know how to put it in the application. I have activated the ID_CAP_ISV_CAMERA from the WMAppMAnifest.xml so the access to the hardware is granted, but I can't find the command or string to integrate in my app.
I am using Visual Studio Ultimate 2013
I think this tutorial should help you create your application sucessfully !
http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh202956(v=vs.105).aspx
It applies to both Windows Phone 8 and 7.1 as well
Also , you can read about the main Camera API from here
http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.devices.photocamera(v=vs.105).aspx
Good Luck !

Why use Service.Model from Silverlight for WindowsPhone?

I understood Silverlight was drop by MS.
I create my first app permitting to read RSS in WindowsPhone and I need to add a reference to System.ServiceModel.Syndication.dll. In the doc http://msdn.microsoft.com/en-us/library/windowsphone/develop/hh487167(v=vs.105).aspx, I need to find this lib in Microsoft SDKs/Silverlight/v4.0/Libraries/Client/.Why should I do it? Why I can't add directly a lib from the standard .net4?
Can you help me to understand.
[UPDATE]
When I add the lib from C:\Program Files (x86)\Microsoft SDKs\Silverlight\v4.0\Libraries\Client\
Visual Studio shows a windows "Adding reference to Windows Phone XNA assembly is safe. However adding reference to a silverlight assembly may lead to unexpexted application behavior. Do you want to continue.
So my assumption is this lib shoudn't be use but I don't find another way.
Maybe by add a ref from .Net 4 or 4.5.
Best regards,
Alexandre
The Windows Phone 7 SDK was built on top of Silverlight. For Windows Phone 8 this was changed so that there isn't a direct history with Silverlight but it was based on WinRT instead. Lots of functionality was made available to Silverlight controls to support backwards compatibility with apps written for 7.
Because WinRT is not compatible with classes written for the full version of the framework you cannot use these in your Windows Phone apps.
The warning you are getting is just a warning. It's telling you that your doing something that isn't an ideal and so you may have issues. Unfortunately there are no other versions of the SyndicationFeed object available to Windows Phone apps so you'll need to use this library if you want the functionality of SyndicationFeed without recreating it yourself. The good news is that there are no issue with using this class in your app. Just be sure to test carefully, on real devices, if you start to use other functionality from that assembly because, as the warning says: "there may be unexpected behaviour".