Loading Windows.phone.Speech into PowerShell - windows

So I have been poking around looking for some way to use Cortana (mainly her voice although the commands would be nice too) in windows powershell.
yes I am aware speech recognition and speech Synthesis is quite easy to do with system.speech. that's not my goal
so far I can load winRT components with this syntax:
[FullTypeNameIncludingNameSpace,NameSpace,ContentType=WindowsRuntime]
thanks to this website here: http://karlprosser.com/coder/2014/04/06/winrt-and-powershell-part-1/
looking through the windows API found here:
http://msdn.microsoft.com/en-us/library/windows/apps/br211377.aspx
I see that there are both
Windows.Media.SpeechSynthesis
And
windows.phone.speech.synthesis
Now I tried Windows.Media.SpeechSynthesis and it seems to work; However, it seems to be almost the same as system.speech
The code:
returns the same voices used by system.speech
this leaves me to assume that cortana in windows 10 is using windows.phone.speech.synthesis
and here voice is located elsewhere.
the trouble is, when trying to use windows.phone.speech.synthesis with
[windows.phone.speech.synthesis.installedvoices,Windows.Phone.Speech.Synthesis,ContentType=WindowsphoneRuntime]
I get the following error:
Unable to find type [windows.phone.speech.synthesis.installedvoices,Windows.Phone.Speech.Synthesis,
ContentType=WindowsphoneRuntime]. Make sure that the assembly that contains this type is loaded.
This comes up with anything related to windows.phone.
i would guess that it would not be available on the PC, but then how/where is cortana located for windows 10 and how can she be accessed? or am I just referencing the component wrong?

Related

Canonical approach to display mgmt in Windows: User32 or DXGI?

We publish an app for Windows 10, and part of what it does is display management; the kind of thing you normally go to Display Settings for. We add/remove displays from the desktop, arrange them, change size and orientation, etc.
Currently I'm using APIs from User32.dll for all of the above (ChangeDisplaySettingsEx, EnumDisplayDevices, DEVMODE, DISPLAY_DEVICE, etc).
Recently I was looking over a display management .NET library project on GitHub. I particularly noticed that the author(s) were using a lot of Direct3D/DXGI APIs. I've worked in Windows for decades, but I never had occasion to use Direct3D at all.
Much of the information and reference material I consulted before writing the User32-based code has been around since the early days of Windows. My current version works fine, but I'd like to feel confident that I'm not using an outdated or inferior approach.
If the standard Display Settings app in Windows 10 were written today, would the display-management functionality be done with Direct3D/DXGI API calls, or is User32 still considered the canonical approach?

Has anyone here gotten the DJI Windows SDK to work yet?

As the https://developer.dji.com/windows-sdk/ is now available, I thought I might have a go.
However, so far I have not gotten anything in VisualStudio using C# that references either the DJIWindowsSDK.dll, DJIWindowsWrapper.dll or DJIWindowsWrapper.winmd to work.
I have tried console applications on the .NET Framework and .NETCore, but so far all I get when just trying to either get at var droneManager = DJISDKManager.Instance; or trying to set any callback on DJIWindowsWrappedInterfaces are compile errors about mismatched platform settings (MSIL vs x32 or x64) or System.BadImageFormatException on first access to any SDK code.
Anyone have any idea on what type of projects these assemblies are actually meant to be usable? Documentation only describes classes and methods and such (which seem clear enough, in general), not basic nitty gritty stuff like the type of projects and platform settings supported.
And I have so far not gotten the SampleCode to work. It's nice that the sample code seems (if I look at source code) to be a sort of complete set of code showing SDK functions at work, but it only seems to work with the latest version of Windows 10, the Windows 10 SDK, and VisualStudio. And possibly a ton of other prerequisites, which do not seem all to clearly spelled out at all.
I would like to get a most simple kind of Hello World! style example (from some kind of Console app) working (first), but so far I'm not succeeding..
Have you checked the DJI Windows SDK Github Readme? I think the Get Started Immediately part can help you run the sample code. It lists the prerequisites, and necessary steps to run it.
BTW, I just found this documentation, you can take a look and see if it helps: https://github.com/dji-sdk/Windows-SDK-Doc/blob/master/source/application-development-workflow/workflow-integrate.md

c++ hide terminal with GTKMM gui apps

I've been looking around on the cplusplus forum and here on stackoverflow, but I have not been able to find an answer. All I find is Windows stuff or people working with IDE'S that do the work for them.
I am creating an application with c++ and GTKMM and nothing else, I just have a texteditor and a compiler that I control with my terminal (I adress this because a lot of people always talk about IDE'S and stuff) on UNIX based computers.
When I run my application (./application) I always see my terminal along with my gui application and I would like to hide the terminal. How would I achieve this?
Thanks in prior :)
So I found out it differs from operation system. I've written out what I've found on my website, so check it out if you want to create a mac application.

Downloading supported file using Windows Phone 7

I am having the following problem when using windows phone.
I have created a handler Download.ashx which takes query ID that I am using to retrieve data from database. Pretty simple stuff and it works on desktop browsers. However when I am trying to use that same way on windows phone 7 I get an error "can't download file windows phone doesn't support this file type"
After quick search on google, I found that WP7 doesn't support this kind of way for downloading files. They should be direct links, for downloading to work.
So my question is: What is the best way to go around this problem, or is there any?
Edit: Oh, and the software I am writing is C# web application that used on mobile devices. WP7.5 is the one having problems

How to scan Wifi access point on Windows Mobile?

I need to scan Wifi access point on Windows Mobile and connect the one of scanned results.
Currently I am using C# language, Windows Mobile 6.5 device, also to scan I am using the below code.
[DllImport(wlanapi.dll", SetLastError=true)]
I am using wlanapi.dll, but it seems that not possible to use on Mobile.
Does anyone know about the belows.
Could I use the dll in Windows Mobile 6.5 to scan and connect?
If the 1 is not possible, please let me know the different methods..
Please give me the clues.
wlanapi.dll doesn't exist in WinMo/WinCE. You have to use an API that is supported.
Most WinMo WiFi drivers (though probably not all) support the Wireless Zero Config (WZC) set of APIs. The native versions of these APIs, like WZCQueryInterface, are outlined in MSDN.
Microsoft does not provide any managed interface for these APIs, in fact the native documentation for them is pretty bad too. The definitive "example" of it's use is in the NETUI component source of Platform Builder. Gettign the eval version just for the source is very worthwhile if you plan to do much WinCE/WinMo development.
From a managed perspective I wrote an MSDN article back in '06 that talks about using the SDF for getting network info. The SDF has been reworked a lot since then, especially in the WZC area, but it's still pretty similar.
I did an updated blog post in '07 about custom-drawn ListBoxes, and while that's not what you're after, the data being displayed is wireless network info, which is in line with what you're after.

Resources