C# Class Systran.MultimodalClientLib.Api.SpeechApi

Represents a collection of functions to interact with the API endpoints
Inheritance: ISpeechApi
Exibir arquivo Open project: SYSTRAN/multimodal-api-csharp-client Class Usage Examples

Public Methods

Method Description
GetBasePath ( String basePath ) : String

Gets the base path of the API client.

MultimodalSpeechAlignGet ( string AudioFile, string TextFile, string Lang, string Model, string Sampling, string Callback ) : SpeechAlignResponse

Align speech Align text and audio files.\n

MultimodalSpeechAlignGetAsync ( string AudioFile, string TextFile, string Lang, string Model, string Sampling, string Callback ) : Task

Align speech Align text and audio files.\n

MultimodalSpeechDetectLanguageGet ( string AudioFile, string Sampling, int MaxSpeaker, string Callback ) : SpeechDetectLanguageResponse

Speech language detection Detect languages from an audio file.\n

MultimodalSpeechDetectLanguageGetAsync ( string AudioFile, string Sampling, int MaxSpeaker, string Callback ) : Task

Speech language detection Detect languages from an audio file.\n

MultimodalSpeechSegmentGet ( string AudioFile, string Sampling, int MaxSpeaker, string Callback ) : SpeechSegmentResponse

Segment speech Segment an audio file.\n

MultimodalSpeechSegmentGetAsync ( string AudioFile, string Sampling, int MaxSpeaker, string Callback ) : Task

Segment speech Segment an audio file.\n

MultimodalSpeechSupportedLanguagesGet ( string Callback ) : SpeechSupportedLanguagesResponse

Supported Languages List of languages in which Speech is supported.\n

MultimodalSpeechSupportedLanguagesGetAsync ( string Callback ) : Task

Supported Languages List of languages in which Speech is supported.\n

MultimodalSpeechTranscribeGet ( string AudioFile, string Lang, string Model, string Sampling, int MaxSpeaker, string Callback ) : SpeechTranscribeResponse

Transcribe speech Get text from an audio file.\n

MultimodalSpeechTranscribeGetAsync ( string AudioFile, string Lang, string Model, string Sampling, int MaxSpeaker, string Callback ) : Task

Transcribe speech Get text from an audio file.\n

SetBasePath ( String basePath ) : void

Sets the base path of the API client.

SpeechApi ( ApiClient apiClient = null ) : System

Initializes a new instance of the SpeechApi class.

SpeechApi ( String basePath ) : System

Initializes a new instance of the SpeechApi class.

Method Details

GetBasePath() public method

Gets the base path of the API client.
public GetBasePath ( String basePath ) : String
basePath String
return String

MultimodalSpeechAlignGet() public method

Align speech Align text and audio files.\n
public MultimodalSpeechAlignGet ( string AudioFile, string TextFile, string Lang, string Model, string Sampling, string Callback ) : SpeechAlignResponse
AudioFile string Audio file ([details](#description_audio_files)).\n
TextFile string Plain text file, ASCII, ISO-8859 or UTF8 encoded.\n\nThe text should include one sentence or clause per line ending with a punctuation mark.\n
Lang string Language code of the input ([details](#description_langage_code_values))
Model string Model name\n
Sampling string Sampling quality of the audio file.\n * high: wide band audio such as radio and TV broadcast (sampling higher or equal to 16KHz)\n * low: telephone data with sampling rates higher or equal to 8KHz. It is highly recommended to not use a bit rate lower than 32Kbps.\n
Callback string Javascript callback function name for JSONP Support\n
return Systran.MultimodalClientLib.Model.SpeechAlignResponse

MultimodalSpeechAlignGetAsync() public method

Align speech Align text and audio files.\n
public MultimodalSpeechAlignGetAsync ( string AudioFile, string TextFile, string Lang, string Model, string Sampling, string Callback ) : Task
AudioFile string Audio file ([details](#description_audio_files)).\n
TextFile string Plain text file, ASCII, ISO-8859 or UTF8 encoded.\n\nThe text should include one sentence or clause per line ending with a punctuation mark.\n
Lang string Language code of the input ([details](#description_langage_code_values))
Model string Model name\n
Sampling string Sampling quality of the audio file.\n * high: wide band audio such as radio and TV broadcast (sampling higher or equal to 16KHz)\n * low: telephone data with sampling rates higher or equal to 8KHz. It is highly recommended to not use a bit rate lower than 32Kbps.\n
Callback string Javascript callback function name for JSONP Support\n
return Task

MultimodalSpeechDetectLanguageGet() public method

Speech language detection Detect languages from an audio file.\n
public MultimodalSpeechDetectLanguageGet ( string AudioFile, string Sampling, int MaxSpeaker, string Callback ) : SpeechDetectLanguageResponse
AudioFile string Audio file ([details](#description_audio_files)).\n
Sampling string Sampling quality of the audio file.\n * high: wide band audio such as radio and TV broadcast (sampling higher or equal to 16KHz)\n * low: telephone data with sampling rates higher or equal to 8KHz. It is highly recommended to not use a bit rate lower than 32Kbps.\n
MaxSpeaker int Maximum number of speakers. Default 1 for low sampling and infinity for high sampling
Callback string Javascript callback function name for JSONP Support\n
return Systran.MultimodalClientLib.Model.SpeechDetectLanguageResponse

MultimodalSpeechDetectLanguageGetAsync() public method

Speech language detection Detect languages from an audio file.\n
public MultimodalSpeechDetectLanguageGetAsync ( string AudioFile, string Sampling, int MaxSpeaker, string Callback ) : Task
AudioFile string Audio file ([details](#description_audio_files)).\n
Sampling string Sampling quality of the audio file.\n * high: wide band audio such as radio and TV broadcast (sampling higher or equal to 16KHz)\n * low: telephone data with sampling rates higher or equal to 8KHz. It is highly recommended to not use a bit rate lower than 32Kbps.\n
MaxSpeaker int Maximum number of speakers. Default 1 for low sampling and infinity for high sampling
Callback string Javascript callback function name for JSONP Support\n
return Task

MultimodalSpeechSegmentGet() public method

Segment speech Segment an audio file.\n
public MultimodalSpeechSegmentGet ( string AudioFile, string Sampling, int MaxSpeaker, string Callback ) : SpeechSegmentResponse
AudioFile string Audio file ([details](#description_audio_files)).\n
Sampling string Sampling quality of the audio file.\n * high: wide band audio such as radio and TV broadcast (sampling higher or equal to 16KHz)\n * low: telephone data with sampling rates higher or equal to 8KHz. It is highly recommended to not use a bit rate lower than 32Kbps.\n
MaxSpeaker int Maximum number of speakers. Default 1 for low sampling and infinity for high sampling
Callback string Javascript callback function name for JSONP Support\n
return Systran.MultimodalClientLib.Model.SpeechSegmentResponse

MultimodalSpeechSegmentGetAsync() public method

Segment speech Segment an audio file.\n
public MultimodalSpeechSegmentGetAsync ( string AudioFile, string Sampling, int MaxSpeaker, string Callback ) : Task
AudioFile string Audio file ([details](#description_audio_files)).\n
Sampling string Sampling quality of the audio file.\n * high: wide band audio such as radio and TV broadcast (sampling higher or equal to 16KHz)\n * low: telephone data with sampling rates higher or equal to 8KHz. It is highly recommended to not use a bit rate lower than 32Kbps.\n
MaxSpeaker int Maximum number of speakers. Default 1 for low sampling and infinity for high sampling
Callback string Javascript callback function name for JSONP Support\n
return Task

MultimodalSpeechSupportedLanguagesGet() public method

Supported Languages List of languages in which Speech is supported.\n
public MultimodalSpeechSupportedLanguagesGet ( string Callback ) : SpeechSupportedLanguagesResponse
Callback string Javascript callback function name for JSONP Support\n
return Systran.MultimodalClientLib.Model.SpeechSupportedLanguagesResponse

MultimodalSpeechSupportedLanguagesGetAsync() public method

Supported Languages List of languages in which Speech is supported.\n
public MultimodalSpeechSupportedLanguagesGetAsync ( string Callback ) : Task
Callback string Javascript callback function name for JSONP Support\n
return Task

MultimodalSpeechTranscribeGet() public method

Transcribe speech Get text from an audio file.\n
public MultimodalSpeechTranscribeGet ( string AudioFile, string Lang, string Model, string Sampling, int MaxSpeaker, string Callback ) : SpeechTranscribeResponse
AudioFile string Audio file ([details](#description_audio_files)).\n
Lang string Language code of the input ([details](#description_langage_code_values))
Model string Model name\n
Sampling string Sampling quality of the audio file.\n * high: wide band audio such as radio and TV broadcast (sampling higher or equal to 16KHz)\n * low: telephone data with sampling rates higher or equal to 8KHz. It is highly recommended to not use a bit rate lower than 32Kbps.\n
MaxSpeaker int Maximum number of speakers. Default 1 for low sampling and infinity for high sampling
Callback string Javascript callback function name for JSONP Support\n
return Systran.MultimodalClientLib.Model.SpeechTranscribeResponse

MultimodalSpeechTranscribeGetAsync() public method

Transcribe speech Get text from an audio file.\n
public MultimodalSpeechTranscribeGetAsync ( string AudioFile, string Lang, string Model, string Sampling, int MaxSpeaker, string Callback ) : Task
AudioFile string Audio file ([details](#description_audio_files)).\n
Lang string Language code of the input ([details](#description_langage_code_values))
Model string Model name\n
Sampling string Sampling quality of the audio file.\n * high: wide band audio such as radio and TV broadcast (sampling higher or equal to 16KHz)\n * low: telephone data with sampling rates higher or equal to 8KHz. It is highly recommended to not use a bit rate lower than 32Kbps.\n
MaxSpeaker int Maximum number of speakers. Default 1 for low sampling and infinity for high sampling
Callback string Javascript callback function name for JSONP Support\n
return Task

SetBasePath() public method

Sets the base path of the API client.
public SetBasePath ( String basePath ) : void
basePath String
return void

SpeechApi() public method

Initializes a new instance of the SpeechApi class.
public SpeechApi ( ApiClient apiClient = null ) : System
apiClient Systran.MultimodalClientLib.Client.ApiClient
return System

SpeechApi() public method

Initializes a new instance of the SpeechApi class.
public SpeechApi ( String basePath ) : System
basePath String
return System