Package org.speakright.core.render

Examples of org.speakright.core.render.Prompt


  public void addPrompt(String ptext)
  {
    //if the prompt added in the ctor is empty then replace it
    //This avoids empty <prompt> tags in the voicexml.
    if (m_promptL.size() == 1) {
      Prompt prompt = firstPrompt();
      if (prompt.ptext().length() == 0) {
        prompt.setPText(ptext);
        return;
      }
    }
    m_promptL.add(new Prompt(ptext));
  }
View Full Code Here


   * @param gtext a grammar text (url, inline grammar, etc)
   * @param ptext prompt text
   */
  public QuestionFlow(String gtext, String ptext) {
    super();
    m_quest = new Question(new Grammar(gtext), new Prompt(ptext));
  }
View Full Code Here

   * @param type type of prompt.  This includes the role (MAIN, SILENCE, NORECO) and escalation count.
   * @param text prompt text.
   */
  public void add(PromptType type, String text)
  {
    m_quest.m_promptSet.add(new Prompt(type, text));
  }
View Full Code Here

    this("good bye");
  }

  public DisconnectFlow(String text) {
    super("disconnect");
    m_prompt = new Prompt(text);
  }
View Full Code Here

//  protected Prompt m_prompt;
  protected ArrayList<Prompt> m_promptL = new ArrayList<Prompt>();
  public PromptFlow()
  {
    Prompt prompt = new Prompt();
    m_promptL.add(prompt);
  }
View Full Code Here

   * @param ptext  prompt text
   */
  public PromptFlow(String ptext)
  {
    super()
    m_promptL.add(new Prompt(ptext));
  }
View Full Code Here

 
  public PromptFlow(String name, String ptext)
  {
    super();
    setName(name);
    m_promptL.add(new Prompt(ptext));
  }
View Full Code Here

   * @param ptext prompt text, such as "Here is some music {willie.wav}"
   */
  public void setPrompt(String ptext)
  {
    m_promptL.clear();
    m_promptL.add(new Prompt(ptext));
  }
View Full Code Here

 
  public TransferFlow(TransferType type, String destination, String ptext) {
    super("transfer");
    m_destination = destination;
    m_transferType = type;
    m_prompt = new Prompt(ptext);
  }
View Full Code Here

    this("record a message");
  }

  public RecordAudioFlow(String text) {
    super("Record");
    m_prompt = new Prompt(text);
    m_beepBeforeRecord = true;
    m_maxTime = 60000; //60 seconds
    m_finalSilenceTime = 2500;
  }
View Full Code Here

TOP

Related Classes of org.speakright.core.render.Prompt

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.