Click or drag to resize

TextToSpeech Class

This class wraps the Text to Speech service. Text to Speech Service
Inheritance Hierarchy
SystemObject
  IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1TextToSpeech

Namespace:  IBM.Watson.DeveloperCloud.Services.TextToSpeech.v1
Assembly:  unity-documentation (in unity-documentation.exe) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class TextToSpeech : IWatsonService

The TextToSpeech type exposes the following members.

Constructors
  NameDescription
Public methodTextToSpeech
Initializes a new instance of the TextToSpeech class
Top
Properties
  NameDescription
Public propertyAudioFormat
This property allows the user to set the AudioFormat to use. Currently, only WAV is supported.
Public propertyCredentials
Gets and sets the credentials of the service. Replace the default endpoint if endpoint is defined.
Public propertyUrl
Gets and sets the endpoint URL for the service.
Public propertyVoice
This property allows the user to specify the voice to use.
Top
Methods
  NameDescription
Public methodAddCustomizationWord
Adds a single word and its translation to the custom voice model with the specified `customization_id`. A custom model can contain no more than 20,000 entries. Only the owner of a custom voice model can use this method to add a word to the model. Note: This method is currently a beta release that supports US English only.
Public methodAddCustomizationWords
Adds one or more words and their translations to the custom voice model with the specified `customization_id`. A custom model can contain no more than 20,000 entries. Only the owner of a custom voice model can use this method to add words to the model. Note: This method is currently a beta release that supports US English only.
Public methodCreateCustomization
Creates a new empty custom voice model that is owned by the requesting user. Note: This method is currently a beta release that supports US English only.
Public methodDeleteCustomization
Deletes the custom voice model with the specified `customization_id`. Only the owner of a custom voice model can use this method to delete the model. Note: This method is currently a beta release that supports US English only.
Public methodDeleteCustomizationWord
Deletes a single word from the custom voice model with the specified customization_id. Only the owner of a custom voice model can use this method to delete a word from the model. Note: This method is currently a beta release that supports US English only.
Public methodGetCustomization
Lists all information about the custom voice model with the specified `customization_id`. In addition to metadata such as the name and description of the voice model, the output includes the words in the model and their translations as defined in the model. To see just the metadata for a voice model, use the GET `/v1/customizations` method. Only the owner of a custom voice model can use this method to query information about the model. Note: This method is currently a beta release that supports US English only.
Public methodGetCustomizations
Lists metadata such as the name and description for the custom voice models that you own. Use the language query parameter to list the voice models that you own for the specified language only. Omit the parameter to see all voice models that you own for all languages. To see the words in addition to the metadata for a specific voice model, use the GET /v1/customizations/{customization_id} method. Only the owner of a custom voice model can use this method to list information about the model. Note: This method is currently a beta release that supports US English only
Public methodGetCustomizationWord
Returns the translation for a single word from the custom model with the specified `customization_id`. The output shows the translation as it is defined in the model. Only the owner of a custom voice model can use this method to query information about a word from the model. Note: This method is currently a beta release that supports US English only.
Public methodGetCustomizationWords
Lists all of the words and their translations for the custom voice model with the specified `customization_id`. The output shows the translations as they are defined in the model. Only the owner of a custom voice model can use this method to query information about the model's words. Note: This method is currently a beta release that supports US English only.
Public methodGetPronunciation
Returns the phonetic pronunciation for the word specified by the text parameter. You can request the pronunciation for a specific format. You can also request the pronunciation for a specific voice to see the default translation for the language of that voice or for a specific custom voice model to see the translation for that voice model. Note: This method is currently a beta release that supports US English only.
Public methodGetVoice
Return specific voice.
Public methodGetVoices
Returns all available voices that can be used.
Public methodToSpeech
Converts the given text into an AudioClip that can be played.
Public methodUpdateCustomization
Updates information for the custom voice model with the specified `customization_id`. You can update the metadata such as the name and description of the voice model. You can also update the words in the model and their translations. A custom model can contain no more than 20,000 entries. Only the owner of a custom voice model can use this method to update the model. Note: This method is currently a beta release that supports US English only.
Top
See Also