Output Audio From EZ-B icon Output Audio From EZ-B Example ARC skill demonstrating converting, compressing and streaming MP3/WAV to an EZ-B speaker, with play/stop commands and TTS examples. Try it →
Asked — Edited

Another Piece Of Code.

Awhile ago I said I would try to get the SDK to be able to google stuff via voice command, someone said that would be great so here it is! I don't have a mic to currently use but I've coded a one-button hard-coded search for a 'concept' to prove it's doable.

As a note I'll move further examples of random things I come up with into the C# forum. I wanted to put this here for the member who said he wanted to google stuff:)

I hacked the Tutorial 12 further (I don't know how to use the designer in C# so I just deleted some stuff, left one button and showed the 'log' textbox).

Relevant code:

https://pastebin.com/awPEJMx8

Thanks @Rich it's prettier this way anyhow:)

It takes an awfully long time though, and I just hard coded it to show the top 4 results.

here:

https://www.screenr.com/hDkH

and attached is the reference dll required for the JSON stuff.

Might want this:

https://developers.google.com/web-search/docs/#fonje


ARC Pro

Upgrade to ARC Pro

Experience early access to the latest features and updates. You'll have everything that is needed to unleash your robot's potential.

Author Avatar
United Kingdom
LinkedIn Twitter Google+ YouTube
#1  

Use pastebin or similar and link to the raw code to avoid the forum formatting from breaking code.