目录

VoiceRequest

Class Info

public class VoiceRequest extends BaseRequestVO

TTS request class.

Public Method Summary

Qualifier and Type

Method Name and Description

void

setCountryCode(String countryCode)

Sets the country code.

void

setFirstLanguage(String firstLanguage)

Sets the voice language.

void

setGender(Integer gender)

Sets the gender of the voice broadcast speaker.

void

setGrsDomain(String grsDomain)

Sets the GRS domain name.

void

setLanguage(String language)

Sets the basic language.

void

setMobileType(String mobileType)

Sets the mobile phone type.

void

setTone(int tone)

Sets the voice timbre.

void

setVoiceText(String voiceText)

Sets the voice text.

String

toString()

Obtains the request information character string.

[h2]setCountryCode

Method

public void setCountryCode(String countryCode)

Sets the country code.

Parameters

Name

Description

countryCode

Country code.

[h2]setFirstLanguage

Method

public void setFirstLanguage(String firstLanguage)

Sets the voice language.

Parameters

Name

Description

firstLanguage

Voice language.

[h2]setGender

Method

public void setGender(Integer gender)

Sets the gender of the voice broadcast speaker.

Parameters

Name

Description

gender

Gender of the voice broadcast speaker.

  • 0: female
  • 1: male

[h2]setGrsDomain

Method

public void setGrsDomain(String grsDomain)

Sets the GRS domain name.

Parameters

Name

Description

grsDomain

GRS domain name.

[h2]setLanguage

Method

public void setLanguage(String language)

Sets the basic language.

Parameters

Name

Description

language

Basic language.

[h2]setMobileType

Method

public void setMobileType(String mobileType)

Sets the mobile phone type.

Parameters

Name

Description

mobileType

Mobile phone type.

  • HW: Huawei phone
  • OTHER: other phone

[h2]setTone

Method

public void setTone(int tone)

Sets the voice timbre.

Parameters

Name

Description

tone

Voice timbre. If a voice timbre is set, the gender setting does not take effect.

  • 1: adorable (Chinese)
  • 2: sweet (Chinese)
  • 5: clear (Chinese)
  • 6: kind (Chinese)
  • 7: thrilling (Chinese)
  • 8: inspiring (Chinese)
  • 10: considerate (Chinese)
  • 11: gentle (Chinese)
  • 12: husky (Chinese)
  • 13: terrifying (Chinese)
  • 14: healing (Chinese)
  • 15: announcer-like (Chinese)
  • 16: cute (Chinese)
  • 17: standard (Chinese)
  • 18: male (English)
  • 19: female (English)

[h2]setVoiceText

Method

public void setVoiceText(String voiceText)

Sets the voice text.

Parameters

Name

Description

voiceText

Voice text.

[h2]toString

Method

public String toString()

Obtains the request information character string.

Returns

Type

Description

String

Request information character string.