1 / 14

Windows 8.1 Äpipäev

Windows 8.1 Äpipäev. Ondrej Stastny Microsoft Premier Field Engineer. Agenda. Speech Synthesis AR Parrot Drone UI 3D printing. Speech Synthesis. Speech Synthesis Markup Language (SSML). XML based language W3 standard for speech synthesis. Mark

harris
Download Presentation

Windows 8.1 Äpipäev

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Windows 8.1 Äpipäev • Ondrej Stastny • Microsoft Premier Field Engineer

  2. Agenda • Speech Synthesis • AR Parrot Drone UI • 3D printing

  3. Speech Synthesis

  4. Speech Synthesis Markup Language (SSML) • XML based language • W3 standard for speech synthesis

  5. Mark • Notify app that certain point has been reached • Phoneme • Phonetic pronounciation • Say-as • Aid the synthesis processor • P, Break, …

  6. // createthe data stream SpeechSynthesisStreamsynthesisStream; synthesisStream= awaitthis.synthesizer.SynthesizeSsmlToStreamAsync(text); // start this audio stream playing this.media.AutoPlay= true; this.media.SetSource(synthesisStream,synthesisStream.ContentType); this.media.Play();

  7. AR Drone 2.0

  8. Initialize connection to the drone publicstaticasyncTaskConnectToDrone() {       // Set up the UDP connection stringremotePort = "5556"; HostNamedroneIP = newHostName("192.168.1.1"); udpSocket = newDatagramSocket(); awaitudpSocket.BindServiceNameAsync(remotePort); awaitudpSocket.ConnectAsync(droneIP, remotePort); udpWriter = newDataWriter(udpSocket.OutputStream); }

  9. Send a command publicstaticasyncTaskSendDroneCommand(stringcommand) { udpWriter.WriteString(command); awaitudpWriter.StoreAsync(); } AT*REF – takeoff/landing,reset AT*PCMD -airborn manipulation [sequence, flag,  roll, pitch, vertical speed, angular speed]

  10. // Strafedrone forward orbackwardatvelocity in range [-1,1] publicstaticstringGetDroneStrafeForwardBackward(uintsequenceNumber, doublevelocity) { // Convertthe ratio into a valuethedroneunderstands intvalue = FloatConversion(velocity); returnCreateATPCMDCommand(sequenceNumber, "0,"+ value + ",0,0"); } // Return a full ATPCMD command privatestaticstringCreateATPCMDCommand(uintsequenceNumber, stringcommand) { return"AT*PCMD="+ sequenceNumber + ",1,"+ command + Environment.NewLine; }

  11. 3D printing

  12. Intro • 3D printing will go mainstream • Similar to printing 2D content • Print Preview • Print Ticket XML

  13. 3D Builder

  14. 1. Register for Print contract protectedvirtualvoidRegisterForPrinting() { // CreatethePrintDocument. printDocument = newPrintDocument(); // SavetheDocumentSource. printDocumentSource = printDocument.DocumentSource; // Addaneventhandlerwhichcreatespreviewpages. printDocument.Paginate += CreatePrintPreviewPages; // Addaneventhandlerwhichprovides a specifiedpreviewpage. printDocument.GetPreviewPage += GetPrintPreviewPage; // Addaneventhandlerwhichprovidesallfinalprintpages. printDocument.AddPages += AddPrintPages; // Create a PrintManager and add a handlerforprintinginitialization. PrintManagerprintMan = PrintManager.GetForCurrentView(); printMan.PrintTaskRequested += PrintTaskRequested; // Initializeprintcontentforthisscenario PreparePrintContent(); }

More Related