你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

User Class

  • java.lang.Object
    • com.microsoft.cognitiveservices.speech.transcription.User

Implements

java.lang.AutoCloseable

public final class User
implements java.lang.AutoCloseable

Represents a user in a conversation. Added in version 1.5.0

Method Summary

Modifier and Type Method and Description
void close()

Explicitly frees any external resource attached to the object

static User fromUserId(String userId)

Creates a User.

java.lang.String getId()

Gets the user ID of a conversation transcriber session.

SafeHandle getImpl()

Returns the user configuration.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Method Details

close

public void close()

Explicitly frees any external resource attached to the object

fromUserId

public static User fromUserId(String userId)

Creates a User.

Parameters:

userId - user's Id.

Returns:

com.microsoft.cognitiveservices.speech.transcription.User class object

getId

public String getId()

Gets the user ID of a conversation transcriber session.

Returns:

the user ID of a conversation transcribing session.

getImpl

public SafeHandle getImpl()

Returns the user configuration.

Returns:

The implementation of the user.

Applies to