Gets or sets a gender value of the speech data. (When Neutral is specified, the speech synthesis engine specified in Hazira is selected.)
- Type: HzSpeechGender
- Access type: read / write
- Default value: Neutral
- Range: Low, Female, Male, Neutral
Note
If you want to enable this property, need to set up the following Haruzira’s settings menu in advance.
General settings -> Speech Convert Type: “To SSML”.
Examples
C#
1 2 3 4 5 6 |
ClientTcpCommunication cltComm = new ClientTcpCommunication(); //Get HzSpeechGender gender = cltComm.ReqSendDataSpeechGender; //Set cltComm.ReqSendDataSpeechGender = HzSpeechGender.Neutral; //Neutral |
Ruby
1 2 3 4 5 6 |
cltComm = ClientTcpCommunication.new #Get gender = cltComm.ReqSendDataSpeechGender #Set cltComm.ReqSendDataSpeechGender = HzSpeechGender::Neutral #Neutral |
Python
1 2 3 4 5 6 7 8 |
from haruzirasdk import hz_client_tcp_communication as hzcomm clt_comm = hzcomm.ClientTcpCommunication() #Get gender = clt_comm.ReqSendDataSpeechGender #Set clt_comm.ReqSendDataSpeechGender = hzcomm.HzSpeechGender.Neutral.value #Neutral |