• Facebook Social Icon
  • LinkedIn Social Icon
  • Twitter Social Icon

© 2019, Phonal Technologies

Learn how to integrate a  voice recognition into your VR/AR application

Download the Phonal Conversation to Start

14-days trial. No credit card required

Step 1: Setup. Configure the Phonal Conversation

Step 2: Launch. Edit and Run Actions or Conversations

Step 3: Empower. Add Contexts to Phonal Conversation

Getting Started

 

To set things up, please add to your Scene these prefabs:

  • Assets/PhonalTechnologies/Prefabs/SpeechRecognition

  • Assets/PhonalTechnologies/Prefabs/DialogueManager

  • Assets/PhonalTechnologies/Prefabs/Dialogue


Copy Assets/PhonalTechnologies/StreamingAssets folder to root of your Assets folder. 


If you already have StreamingAssets folder inside your Assets folder - just copy content from Assets/PhonalTechnologies/StreamingAssets to Assets/StreamingAssets

 

 

 

SpeechRecognition

 

Speech recognition module that listens for a user to talk, detects speech, and pass speech recognition results to the dialogue system. 

Add Google Cloud Speech API key inside to enable recognition.

If you don’t have API Key, you can get it from 
https://cloud.google.com/speech/
https://cloud.google.com/speech/docs/common/auth#restrictions

 

 

 

DialogueManager

 

A module to manage dialogues and their output to UI.

 

You can have as many managers as UIs to output them.

 

 

 

Dialogue

 

A basic dialogue entity.

 

You can have as many Dialogues as you want to. Consists of Intents. Stores all the dialogue flows. Edit dialogue in Dialogue Editor to add new Intents and routes.

After all the prefabs are set up, configure UI to output the results.

Create UI elements with the ability to display text and assign a special script to them:
Assets/PhonalTechnologies/Prefabs/InteractableUi


This script creates an interface for Phonal Conversation to set the content inside. You can extend this class to output things wherever you want.

After UI elements are configured, add them to DialogueManager for Phonal Conversation to know where to display the output.

Drag and drop elements with assigned InteractableUi script to related DialogueManager fields.

Please refer the sample scene to see how all things set up:
Assets/PhonalTechnologies/Scenes/SampleScene.unity

 

 

 

Dialogue Editor

 

GUI to create, edit and configure conversations.

Within Dialogue Editor you can:

 

  • Create intents

  • Add input samples to intents

  • Add output samples to intents

  • Connect intents to make a complex dialogue tree

  • Add suggestion texts