IT. Expert System.

Android Reference

Recognizer.Grammar


android.speech.srec

Class Recognizer.Grammar

  • Enclosing class:
    Recognizer


    public class Recognizer.Grammar
    extends Object
    Represents a grammar loaded into the Recognizer.
    • Constructor Detail

      • Recognizer.Grammar

        public Recognizer.Grammar(String g2gFileName)
                           throws IOException
        Create a Grammar instance.
        Parameters:
        g2gFileName - pathname of g2g file.
        Throws:
        IOException
    • Method Detail

      • resetAllSlots

        public void resetAllSlots()
        Reset all slots.
      • addWordToSlot

        public void addWordToSlot(String slot,
                         String word,
                         String pron,
                         int weight,
                         String tag)
        Add a word to a slot.
        Parameters:
        slot - slot name.
        word - word to insert.
        pron - pronunciation, or null to derive from word.
        weight - weight to give the word. One is normal, 50 is low.
        tag - semantic meaning tag string.
      • compile

        public void compile()
        Compile all slots.
      • setupRecognizer

        public void setupRecognizer()
        Setup Grammar with Recognizer.
      • destroy

        public void destroy()
        Release resources associated with this Grammar.
      • finalize

        protected void finalize()
        Clean up resources.
        Overrides:
        finalize in class Object


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 11084 / . Delta: 0.14465 с