Class UniProxySession
ru.yandex.speechkit
java.lang.Object ⇽ UniProxySession
public class UniProxySession
Creates a universal server connection.
The UniProxySession object can be used when creating the Vocalizer, PhraseSpotter, and BiometryGroup objects. To save resources, one UniProxySession object can be used by multiple Vocalizer, PhraseSpotter, and BiometryGroup objects or their combination at once.
The session object stores a server connection and provides it for the created requests.
Nested Classes
class | UniProxySession.Builder |
class | UniProxySession.Builder |
Methods
Method Detail
destroy
public synchronized void destroy ()
Explicitly releases resources used by the session.
If the app has incomplete requests created using the session object, the server connection is not interrupted, but remains active until the last request is completed. Once the resources are released, no correct operation of UniProxySession is possible.getUrl
public String getUrl ()
Returns the address of the server.
Returns:
Server address.
toString
public String toString ()