speaker

public final SpeechConfig.Builder speaker(String speaker)

The speaker's name, it should match the speaker name given in the prompt.


public final SpeechConfig.Builder speaker(JsonField<String> speaker)

Sets Builder.speaker to an arbitrary JSON value.

You should usually call Builder.speaker with a well-typed String value instead. This method is primarily for setting the field to an undocumented or not yet supported value.