/** * <p> * Determines whether the transcription job uses speaker recognition to identify different speakers in the input * audio. Speaker recognition labels individual speakers in the audio file. If you set the * <code>ShowSpeakerLabels</code> field to true, you must also set the maximum number of speaker labels * <code>MaxSpeakerLabels</code> field. * </p> * <p> * You can't set both <code>ShowSpeakerLabels</code> and <code>ChannelIdentification</code> in the same request. If * you set both, your request returns a <code>BadRequestException</code>. * </p> * * @param showSpeakerLabels * Determines whether the transcription job uses speaker recognition to identify different speakers in the * input audio. Speaker recognition labels individual speakers in the audio file. If you set the * <code>ShowSpeakerLabels</code> field to true, you must also set the maximum number of speaker labels * <code>MaxSpeakerLabels</code> field.</p> * <p> * You can't set both <code>ShowSpeakerLabels</code> and <code>ChannelIdentification</code> in the same * request. If you set both, your request returns a <code>BadRequestException</code>. * @return Returns a reference to this object so that method calls can be chained together. */ public Settings withShowSpeakerLabels(Boolean showSpeakerLabels) { setShowSpeakerLabels(showSpeakerLabels); return this; }
settings.setShowSpeakerLabels(context.getUnmarshaller(Boolean.class).unmarshall(context));
public Settings unmarshall(JsonUnmarshallerContext context) throws Exception { AwsJsonReader reader = context.getReader(); if (!reader.isContainer()) { reader.skipValue(); return null; } Settings settings = new Settings(); reader.beginObject(); while (reader.hasNext()) { String name = reader.nextName(); if (name.equals("VocabularyName")) { settings.setVocabularyName(StringJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("ShowSpeakerLabels")) { settings.setShowSpeakerLabels(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("MaxSpeakerLabels")) { settings.setMaxSpeakerLabels(IntegerJsonUnmarshaller.getInstance() .unmarshall(context)); } else if (name.equals("ChannelIdentification")) { settings.setChannelIdentification(BooleanJsonUnmarshaller.getInstance() .unmarshall(context)); } else { reader.skipValue(); } } reader.endObject(); return settings; }