1 / 10

Die Anbindung

Die Anbindung. Wortschatz. eingeschränkt. Akustisches Modell. Speech2Chess. Sphinx. Syntax. Schachprogramm. Logik. Xboard Engine. Dreamchess. Sphinx. Java-Library Einfache Einbindung in Java Applikationen Macht alles von Aufnahme durch Mikrophone Anwendung der Sprachmodelle

Download Presentation

Die Anbindung

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. Die Anbindung Wortschatz eingeschränkt Akustisches Modell Speech2Chess Sphinx Syntax Schachprogramm Logik Xboard Engine Dreamchess

  2. Sphinx • Java-Library • Einfache Einbindung in Java Applikationen • Macht alles von • Aufnahme durch Mikrophone • Anwendung der Sprachmodelle • Entfernen von Füllwörtern (z.B. nun, gar, also) • Rückgabe des erkannten Textes mit Bewertung

  3. Sphinx • Initialisierung ConfigurationManagercm = newConfigurationManager(„chess.config.xml“); Recognizerrecognizer = (Recognizer) cm.lookup("recognizer"); Microphone microphone = (Microphone) cm.lookup("microphone"); • Erkennung microphone.startRecording() Resultresult = recognizer.recognize(); String resultText = result.getBestFinalResultNoFiller();

  4. Eingeschränkte Wortschatz • Felder • A1 – H8 • Figuren • Bauer • Turm • … • Kontrollbefehle • Ja, Nein • Spiel beenden • usw.

  5. Das Schachprogramm - Dreamchess • OpenSource / GPL • Programmiersprache: C • Ursprung: Linux • Grafische Library: SDL -> 3D OpenGL • Kompilierbar unter Win mit MinGW • Lauffähig unter Win, Linux, Mac • Schach Engine: XboardProtokoll • Oberfläche: Komplett anpassbar

  6. Das Schachprogramm - Dreamchess • Dreamchess

  7. Speech2Chess • Programmiersprache: Java • Bindet Sphinx ein • Folgert Zug aus erkannten Satz • Überprüft Logik des erkannten Zugs • Baut Verbindung zum Schachprogramm auf • Kommunikation über TCP Sockets (WinSockets / Unix Sockets) • Steuert Spielverlauf

  8. Speech2Chess - Oberfläche

  9. Ablauf • Sphinx: Bewege Bauer von a2 nach a4 • SyntaxParser: src=a2, dst=a4, srcOpt=bauer • if not srcanddst: • {…} • ifsrcanddst: • Schach Logik klärt ob gültiger Zug • if True: • Führe Zug aus

  10. Ablauf • Sphinx: Bewege Turm nach a4 • SyntaxParser: src=?, dst=a4, srcOpt=bauer • if not srcanddst: • Versuche Feld über optionale Informationen zu finden. • Z.b. Wenn nur noch ein Turm vorhanden ist • ifsrcanddst: • {…}

More Related