Class OnlineModel

ru.yandex.speechkit

public  class  OnlineModel 

Language models for online recognition.

Constructors

OnlineModel(@NonNull String name)

Creates an object of the OnlineModel class.

Methods

StringgetName()

Returns the name of the language model.

StringtoString()

Fields

final OnlineModelBUYING

"Orders" language model.

final OnlineModelDATES

"Dates" language model.

final OnlineModelDIALOG

"Dialog" language model.

final OnlineModelFREEFORM

Language model for normal speech.

final OnlineModelGENERAL

Language model based on search queries.

final OnlineModelMAPS

"Address" language model.

final OnlineModelMUSIC

"Music" language model.

final OnlineModelNAMES

"Names" language model.

final OnlineModelNOTES

"Texts" language model.

final OnlineModelNUMBERS

"Numbers" language model.

final OnlineModelQUERIES

"Short queries" language model.

Constructor Detail

OnlineModel

public OnlineModel (@NonNull String name)

Creates an object of the OnlineModel class.

Parameters:
name

Name of the language model.

Method Detail

getName

public String getName ()

Returns the name of the language model.

Returns:

Name of the language model.

toString

public String toString ()

Field Detail

BUYING

public static BUYING = new OnlineModel("buying")

"Orders" language model.

It is a model for recognizing phrases related to making orders in online shops (confirming the order and the delivery method).

DATES

public static DATES = new OnlineModel("dates")

"Dates" language model.

It is a model for recognizing the names of months, ordinal numbers, and cardinal numbers.

DIALOG

public static DIALOG = new OnlineModel("dialog-general")

"Dialog" language model.

It is a model for recognizing phrases in a dialog.

FREEFORM

public static FREEFORM = new OnlineModel("freeform")

Language model for normal speech.

It is a model for dictating texts, letters, SMS messages, and so on.
Note.

This language model is obsolete. Use the NOTES model.

GENERAL

public static GENERAL = new OnlineModel("general")

Language model based on search queries.

Note.

This language model is obsolete. Use the QUERIES model.

MAPS

public static MAPS = new OnlineModel("maps")

"Address" language model.

It is a model for recognizing geographical names and addresses. For example:
  • [go to Kirpichniye Viemki street 5].

  • [how far is it from Lva Tolstogo to Novaya Zemlya?].

  • [show me the route to the Mayakovskiy museum].

MUSIC

public static MUSIC = new OnlineModel("music")

"Music" language model.

It is a model for recognizing music-related queries (the names of songs and bands, the names of performers).
Note.

This model is not intended for recognizing fragments of music.

NAMES

public static NAMES = new OnlineModel("names")

"Names" language model.

Used for recognizing first and last names (for example, when asking to connect to a phone extension).

NOTES

public static NOTES = new OnlineModel("notes")

"Texts" language model.

It is a model for free dictation of short texts, such as SMS messages, notes, and comments. When using this model, punctuation marks are inserted. For example: [It's rare to find a place where you feel at home. But now there is another cozy spot where you can relax over a cup of cocoa at any time of the day or night. Try the lemon eclair with basil — it's delicious and different. I recommend it.].

NUMBERS

public static NUMBERS = new OnlineModel("numbers")

"Numbers" language model.

It is a model for cardinal numbers from 1 to 999 and separators, such as comma, dot, and dash. The model is for dictating phone numbers, account numbers, or document numbers.

QUERIES

public static QUERIES = new OnlineModel("queries")

"Short queries" language model.

It is a model for recognizing general search queries and short phrases (3-5 words) on various topics. For example:
  • [Show the next turn].

  • [Connect me to the sales department].

  • [Another cup of coffee and two soft French rolls].

  • [What is the weather in Vladivostok?].

  • [Remind me to buy fruit and vegetables on the way home].