[][src]Crate ms_speech_sys

Low level FFI bindings for Microsoft Speech SDK.

Structs

_Result_TranslationTextBufferHeader

Defines the header of the buffer that returns translation text results. The buffer starts with the header whose structure is defined below, and then follows the translation results for all required languages.

__fsid_t
_spx_empty

Constants

ActivityJSONType_ActivityJSONType_Array
ActivityJSONType_ActivityJSONType_Null
ActivityJSONType_ActivityJSONType_Object
ActivityJSONType_ActivityJSONType_Value_Boolean
ActivityJSONType_ActivityJSONType_Value_Double
ActivityJSONType_ActivityJSONType_Value_Int
ActivityJSONType_ActivityJSONType_Value_String
ActivityJSONType_ActivityJSONType_Value_UInt
Audio_Stream_Container_Format_StreamFormat_Flac

Stream ContainerFormat definition for FLAC. Not supported yet.

Audio_Stream_Container_Format_StreamFormat_Mp3

Stream ContainerFormat definition for MP3.

Audio_Stream_Container_Format_StreamFormat_Ogg_Opus

Stream ContainerFormat definition for OGG OPUS.

INT8_MIN
INT8_MAX
INT16_MIN
INT16_MAX
INT32_MIN
INT32_MAX
INTPTR_MAX
INTPTR_MIN
INT_FAST8_MIN
INT_FAST8_MAX
INT_FAST16_MIN
INT_FAST16_MAX
INT_FAST32_MIN
INT_FAST32_MAX
INT_LEAST8_MIN
INT_LEAST8_MAX
INT_LEAST16_MIN
INT_LEAST16_MAX
INT_LEAST32_MIN
INT_LEAST32_MAX
PTRDIFF_MAX
PTRDIFF_MIN
PropertyId_AudioConfig_AudioSource
PropertyId_AudioConfig_BitsPerSampleForCapture
PropertyId_AudioConfig_DeviceNameForCapture
PropertyId_AudioConfig_NumberOfChannelsForCapture
PropertyId_AudioConfig_SampleRateForCapture
PropertyId_CancellationDetails_Reason
PropertyId_CancellationDetails_ReasonDetailedText
PropertyId_CancellationDetails_ReasonText
PropertyId_Conversation_From_Id
PropertyId_Conversation_Initial_Silence_Timeout
PropertyId_Conversation_Secret_Key
PropertyId_Conversation_TaskDialogAppId
PropertyId_DataBuffer_TimeStamp
PropertyId_DataBuffer_UserId
PropertyId_LanguageUnderstandingServiceResponse_JsonResult
PropertyId_SpeechServiceAuthorization_Token
PropertyId_SpeechServiceAuthorization_Type
PropertyId_SpeechServiceConnection_EnableAudioLogging
PropertyId_SpeechServiceConnection_EndSilenceTimeoutMs
PropertyId_SpeechServiceConnection_Endpoint
PropertyId_SpeechServiceConnection_EndpointId
PropertyId_SpeechServiceConnection_InitialSilenceTimeoutMs
PropertyId_SpeechServiceConnection_IntentRegion
PropertyId_SpeechServiceConnection_Key
PropertyId_SpeechServiceConnection_ProxyHostName
PropertyId_SpeechServiceConnection_ProxyPassword
PropertyId_SpeechServiceConnection_ProxyPort
PropertyId_SpeechServiceConnection_ProxyUserName
PropertyId_SpeechServiceConnection_RecoLanguage
PropertyId_SpeechServiceConnection_RecoMode
PropertyId_SpeechServiceConnection_Region
PropertyId_SpeechServiceConnection_SynthLanguage
PropertyId_SpeechServiceConnection_SynthOutputFormat
PropertyId_SpeechServiceConnection_SynthVoice
PropertyId_SpeechServiceConnection_TranslationFeatures
PropertyId_SpeechServiceConnection_TranslationToLanguages
PropertyId_SpeechServiceConnection_TranslationVoice
PropertyId_SpeechServiceConnection_Url
PropertyId_SpeechServiceConnection_UserDefinedQueryParameters
PropertyId_SpeechServiceResponse_JsonErrorDetails
PropertyId_SpeechServiceResponse_JsonResult
PropertyId_SpeechServiceResponse_OutputFormatOption
PropertyId_SpeechServiceResponse_PostProcessingOption
PropertyId_SpeechServiceResponse_ProfanityOption
PropertyId_SpeechServiceResponse_RecognitionLatencyMs
PropertyId_SpeechServiceResponse_RequestDetailedResultTrueFalse
PropertyId_SpeechServiceResponse_RequestProfanityFilterTrueFalse
PropertyId_SpeechServiceResponse_RequestWordLevelTimestamps
PropertyId_SpeechServiceResponse_StablePartialResultThreshold
PropertyId_SpeechServiceResponse_TranslationRequestStablePartialResult
PropertyId_Speech_LogFilename
PropertyId_Speech_SessionId
Result_CancellationErrorCode_CancellationErrorCode_AuthenticationFailure
Result_CancellationErrorCode_CancellationErrorCode_BadRequest
Result_CancellationErrorCode_CancellationErrorCode_ConnectionFailure
Result_CancellationErrorCode_CancellationErrorCode_Forbidden
Result_CancellationErrorCode_CancellationErrorCode_NoError
Result_CancellationErrorCode_CancellationErrorCode_RuntimeError
Result_CancellationErrorCode_CancellationErrorCode_ServiceError
Result_CancellationErrorCode_CancellationErrorCode_ServiceTimeout
Result_CancellationErrorCode_CancellationErrorCode_ServiceUnavailable
Result_CancellationErrorCode_CancellationErrorCode_TooManyRequests
Result_CancellationReason_CancellationReason_EndOfStream
Result_CancellationReason_CancellationReason_Error
Result_NoMatchReason_NoMatchReason_InitialBabbleTimeout
Result_NoMatchReason_NoMatchReason_InitialSilenceTimeout
Result_NoMatchReason_NoMatchReason_KeywordNotRecognized
Result_NoMatchReason_NoMatchReason_NotRecognized
Result_Reason_ResultReason_Canceled
Result_Reason_ResultReason_NoMatch
Result_Reason_ResultReason_RecognizedIntent
Result_Reason_ResultReason_RecognizedKeyword
Result_Reason_ResultReason_RecognizedSpeech
Result_Reason_ResultReason_RecognizingIntent
Result_Reason_ResultReason_RecognizingKeyword
Result_Reason_ResultReason_RecognizingSpeech
Result_Reason_ResultReason_SynthesizingAudio
Result_Reason_ResultReason_SynthesizingAudioComplete
Result_Reason_ResultReason_SynthesizingAudioStart
Result_Reason_ResultReason_TranslatedSpeech
Result_Reason_ResultReason_TranslatingSpeech
SIG_ATOMIC_MAX
SIG_ATOMIC_MIN
SIZE_MAX
SPX_NOERROR
SpeechConfig_ProfanityOption_SpeechConfig_ProfanityMasked
SpeechConfig_ProfanityOption_SpeechConfig_ProfanityRaw
SpeechConfig_ProfanityOption_SpeechConfig_ProfanityRemoved
SpeechConfig_ServicePropertyChannel_SpeechConfig_ServicePropertyChannel_UriQueryParameter
SpeechOutputFormat_SpeechOutputFormat_Detailed
SpeechOutputFormat_SpeechOutputFormat_Simple
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Audio16Khz16KbpsMonoSiren
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Audio16Khz128KBitRateMonoMp3
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Audio16Khz32KBitRateMonoMp3
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Audio16Khz64KBitRateMonoMp3
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Audio24Khz160KBitRateMonoMp3
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Audio24Khz48KBitRateMonoMp3
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Audio24Khz96KBitRateMonoMp3
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Raw16Khz16BitMonoTrueSilk
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Raw16Khz16BitMonoPcm
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Raw24Khz16BitMonoPcm
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Raw8Khz8BitMonoMULaw
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Raw8Khz16BitMonoPcm
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Riff16Khz16KbpsMonoSiren
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Riff16Khz16BitMonoPcm
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Riff24Khz16BitMonoPcm
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Riff8Khz8BitMonoMULaw
Speech_Synthesis_Output_Format_SpeechSynthesisOutputFormat_Riff8Khz16BitMonoPcm
Stream_Status_StreamStatus_AllData
Stream_Status_StreamStatus_Canceled
Stream_Status_StreamStatus_NoData
Stream_Status_StreamStatus_PartialData
Stream_Status_StreamStatus_Unknown
UINT8_MAX
UINT16_MAX
UINT32_MAX
UINTPTR_MAX
UINT_FAST8_MAX
UINT_FAST16_MAX
UINT_FAST32_MAX
UINT_LEAST8_MAX
UINT_LEAST16_MAX
UINT_LEAST32_MAX
WINT_MAX
WINT_MIN
_ATFILE_SOURCE
_BITS_STDINT_INTN_H
_BITS_STDINT_UINTN_H
_BITS_TYPESIZES_H
_BITS_TYPES_H
_BITS_WCHAR_H
_DEFAULT_SOURCE
_FEATURES_H
_POSIX_C_SOURCE
_POSIX_SOURCE
_STDC_PREDEF_H
_STDINT_H
_SYS_CDEFS_H
__FD_SETSIZE
__GLIBC_MINOR__
__GLIBC_USE_DEPRECATED_GETS
__GLIBC_USE_IEC_60559_BFP_EXT
__GLIBC_USE_IEC_60559_FUNCS_EXT
__GLIBC_USE_IEC_60559_TYPES_EXT
__GLIBC_USE_LIB_EXT2
__GLIBC__
__GNU_LIBRARY__
__HAVE_GENERIC_SELECTION
__INO_T_MATCHES_INO64_T
__OFF_T_MATCHES_OFF64_T
__RLIM_T_MATCHES_RLIM64_T
__STDC_IEC_559__
__STDC_IEC_559_COMPLEX__
__STDC_ISO_10646__
__STDC_NO_THREADS__
__SYSCALL_WORDSIZE
__USE_ATFILE
__USE_FORTIFY_LEVEL
__USE_ISOC11
__USE_ISOC95
__USE_ISOC99
__USE_MISC
__USE_POSIX
__USE_POSIX2
__USE_POSIX199309
__USE_POSIX199506
__USE_POSIX_IMPLICITLY
__USE_XOPEN2K
__USE_XOPEN2K8
__WORDSIZE
__WORDSIZE_TIME64_COMPAT32
__bool_true_false_are_defined
__glibc_c99_flexarr_available
false_
true_

Functions

activity_complex_field_handle
activity_create
activity_from_string
activity_handle_is_valid
activity_handle_release
activity_json_array_item
activity_json_array_size
activity_json_field_handle
activity_json_get_bool
activity_json_get_double
activity_json_get_int
activity_json_get_string
activity_json_get_string_size
activity_json_get_type
activity_json_get_uint
activity_json_handle_is_valid
activity_json_handle_release
activity_json_has_field
activity_json_set_bool
activity_json_set_double
activity_json_set_int
activity_json_set_string
activity_json_set_uint
activity_property_get
activity_property_set
activity_property_size
activity_serialize
activity_serialized_size
audio_config_create_audio_input_from_a_microphone
audio_config_create_audio_input_from_default_microphone
audio_config_create_audio_input_from_stream
audio_config_create_audio_input_from_wav_file_name
audio_config_create_audio_output_from_default_speaker
audio_config_create_audio_output_from_stream
audio_config_create_audio_output_from_wav_file_name
audio_config_create_pull_audio_input_stream
audio_config_create_push_audio_input_stream
audio_config_create_push_audio_output_stream
audio_config_get_property_bag
audio_config_is_handle_valid
audio_config_release
audio_data_stream_can_read_data
audio_data_stream_can_read_data_from_position
audio_data_stream_create_from_result
audio_data_stream_get_canceled_error_code
audio_data_stream_get_position
audio_data_stream_get_property_bag
audio_data_stream_get_reason_canceled
audio_data_stream_get_status
audio_data_stream_is_handle_valid
audio_data_stream_read
audio_data_stream_read_from_position
audio_data_stream_release
audio_data_stream_save_to_wave_file
audio_data_stream_set_position
audio_stream_create_pull_audio_input_stream
audio_stream_create_pull_audio_output_stream
audio_stream_create_push_audio_input_stream
audio_stream_create_push_audio_output_stream
audio_stream_format_create_from_compressed_format
audio_stream_format_create_from_default_input
audio_stream_format_create_from_default_output
audio_stream_format_create_from_waveformat_pcm
audio_stream_format_is_handle_valid
audio_stream_format_release
audio_stream_is_handle_valid
audio_stream_release
connection_close
connection_connected_set_callback
connection_disconnected_set_callback
connection_from_recognizer
connection_handle_is_valid
connection_handle_release
connection_open
conversation_transcriber_end_conversation
conversation_transcriber_get_conversation_id
conversation_transcriber_set_conversation_id
conversation_transcriber_update_participant
conversation_transcriber_update_participant_by_user
conversation_transcriber_update_participant_by_user_id
conversation_transcription_result_get_user_id
dialog_service_config_from_bot_secret
dialog_service_config_from_task_dialog_app_id
dialog_service_connector_activity_received_event_get_activity
dialog_service_connector_activity_received_event_get_audio
dialog_service_connector_activity_received_event_handle_is_valid
dialog_service_connector_activity_received_event_has_audio
dialog_service_connector_activity_received_event_release
dialog_service_connector_activity_received_set_callback
dialog_service_connector_async_reco_result_handle_is_valid
dialog_service_connector_async_reco_result_handle_release
dialog_service_connector_async_string_handle_is_valid
dialog_service_connector_async_string_handle_release
dialog_service_connector_async_void_handle_is_valid
dialog_service_connector_async_void_handle_release
dialog_service_connector_canceled_set_callback
dialog_service_connector_connect
dialog_service_connector_connect_async
dialog_service_connector_connect_async_wait_for
dialog_service_connector_create_dialog_service_connector_from_config
dialog_service_connector_disconnect
dialog_service_connector_disconnect_async
dialog_service_connector_disconnect_async_wait_for
dialog_service_connector_handle_is_valid
dialog_service_connector_handle_release
dialog_service_connector_listen_once
dialog_service_connector_listen_once_async
dialog_service_connector_listen_once_async_wait_for
dialog_service_connector_recognized_get_result
dialog_service_connector_recognized_set_callback
dialog_service_connector_recognized_size
dialog_service_connector_recognizing_set_callback
dialog_service_connector_send_activity
dialog_service_connector_send_activity_async
dialog_service_connector_send_activity_async_wait_for
dialog_service_connector_session_started_set_callback
dialog_service_connector_session_stopped_set_callback
dialog_service_connector_start_keyword_recognition
dialog_service_connector_start_keyword_recognition_async
dialog_service_connector_start_keyword_recognition_async_wait_for
dialog_service_connector_stop_keyword_recognition
dialog_service_connector_stop_keyword_recognition_async
dialog_service_connector_stop_keyword_recognition_async_wait_for
error_get_call_stack
error_get_error_code
error_get_message
error_release
grammar_handle_is_valid
grammar_handle_release
grammar_phrase_create_from_text
grammar_phrase_handle_is_valid
grammar_phrase_handle_release
intent_recognizer_add_intent
intent_result_get_intent_id
intent_trigger_create_from_language_understanding_model
intent_trigger_create_from_phrase
intent_trigger_handle_is_valid
intent_trigger_handle_release
keyword_recognition_model_create_from_file
keyword_recognition_model_handle_is_valid
keyword_recognition_model_handle_release
language_understanding_model__handle_release
language_understanding_model_create_from_app_id
language_understanding_model_create_from_subscription
language_understanding_model_create_from_uri
language_understanding_model_handle_is_valid
participant_create_handle
participant_get_property_bag
participant_release_handle
participant_set_preferred_langugage
participant_set_voice_signature
phrase_list_grammar_add_phrase
phrase_list_grammar_clear
phrase_list_grammar_from_recognizer_by_name
property_bag_free_string
property_bag_get_string
property_bag_is_valid
property_bag_release
property_bag_set_string
pull_audio_input_stream_set_callbacks
pull_audio_input_stream_set_getproperty_callback
pull_audio_output_stream_read
push_audio_input_stream_close
push_audio_input_stream_set_property_by_id
push_audio_input_stream_set_property_by_name
push_audio_input_stream_write
push_audio_output_stream_set_callbacks
recognizer_async_handle_is_valid
recognizer_async_handle_release
recognizer_canceled_set_callback
recognizer_create_conversation_transcriber_from_config
recognizer_create_intent_recognizer_from_config
recognizer_create_speech_recognizer_from_config
recognizer_create_translation_recognizer_from_config
recognizer_disable
recognizer_enable
recognizer_event_handle_is_valid
recognizer_event_handle_release
recognizer_get_property_bag
recognizer_handle_is_valid
recognizer_handle_release
recognizer_is_enabled
recognizer_recognition_event_get_offset
recognizer_recognition_event_get_result
recognizer_recognize_once
recognizer_recognize_once_async
recognizer_recognize_once_async_wait_for
recognizer_recognized_set_callback
recognizer_recognizing_set_callback
recognizer_result_handle_is_valid
recognizer_result_handle_release
recognizer_session_event_get_session_id
recognizer_session_started_set_callback
recognizer_session_stopped_set_callback
recognizer_speech_end_detected_set_callback
recognizer_speech_start_detected_set_callback
recognizer_start_continuous_recognition
recognizer_start_continuous_recognition_async
recognizer_start_continuous_recognition_async_wait_for
recognizer_start_keyword_recognition
recognizer_start_keyword_recognition_async
recognizer_start_keyword_recognition_async_wait_for
recognizer_stop_continuous_recognition
recognizer_stop_continuous_recognition_async
recognizer_stop_continuous_recognition_async_wait_for
recognizer_stop_keyword_recognition
recognizer_stop_keyword_recognition_async
recognizer_stop_keyword_recognition_async_wait_for
result_get_canceled_error_code
result_get_duration
result_get_no_match_reason
result_get_offset
result_get_property_bag
result_get_reason
result_get_reason_canceled
result_get_result_id
result_get_text
session_from_recognizer
session_get_property_bag
session_handle_is_valid
session_handle_release
speech_config_from_authorization_token
speech_config_from_endpoint
speech_config_from_subscription
speech_config_get_property_bag
speech_config_is_handle_valid
speech_config_release
speech_config_set_audio_output_format
speech_config_set_profanity
speech_config_set_service_property
synth_result_get_audio_data
synth_result_get_audio_format
synth_result_get_audio_length
synth_result_get_canceled_error_code
synth_result_get_property_bag
synth_result_get_reason
synth_result_get_reason_canceled
synth_result_get_result_id
synthesizer_async_handle_is_valid
synthesizer_async_handle_release
synthesizer_canceled_set_callback
synthesizer_completed_set_callback
synthesizer_create_speech_synthesizer_from_config
synthesizer_disable
synthesizer_enable
synthesizer_event_handle_is_valid
synthesizer_event_handle_release
synthesizer_get_property_bag
synthesizer_handle_is_valid
synthesizer_handle_release
synthesizer_is_enabled
synthesizer_result_handle_is_valid
synthesizer_result_handle_release
synthesizer_speak_async_wait_for
synthesizer_speak_ssml
synthesizer_speak_ssml_async
synthesizer_speak_text
synthesizer_speak_text_async
synthesizer_start_speaking_ssml
synthesizer_start_speaking_ssml_async
synthesizer_start_speaking_text
synthesizer_start_speaking_text_async
synthesizer_started_set_callback
synthesizer_synthesis_event_get_result
synthesizer_synthesizing_set_callback
translation_synthesis_result_get_audio_data
translation_text_result_get_translation_text_buffer_header
translator_synthesizing_audio_set_callback
user_create_from_id
user_get_id
user_release_handle

Type Definitions

ActivityJSONType
Audio_Stream_Container_Format

Defines supported audio stream container format. Changed in version 1.4.0.

CONNECTION_CALLBACK_FUNC
CUSTOM_AUDIO_PULL_STREAM_CLOSE_CALLBACK
CUSTOM_AUDIO_PULL_STREAM_GET_PROPERTY_CALLBACK
CUSTOM_AUDIO_PULL_STREAM_READ_CALLBACK
CUSTOM_AUDIO_PUSH_STREAM_CLOSE_CALLBACK
CUSTOM_AUDIO_PUSH_STREAM_WRITE_CALLBACK
PRECOGNITION_CALLBACK_FUNC
PSESSION_CALLBACK_FUNC
PSYNTHESIS_CALLBACK_FUNC
PTRANSLATIONSYNTHESIS_CALLBACK_FUNC
PropertyId
Result_CancellationErrorCode
Result_CancellationReason
Result_NoMatchReason
Result_Reason
Result_TranslationTextBufferHeader
SPXACTIVITYHANDLE
SPXACTIVITYJSONHANDLE
SPXASYNCHANDLE
SPXAUDIOCONFIGHANDLE
SPXAUDIOSTREAMFORMATHANDLE
SPXAUDIOSTREAMHANDLE
SPXCONNECTIONHANDLE
SPXERRORHANDLE
SPXEVENTHANDLE
SPXFACTORYHANDLE
SPXGRAMMARHANDLE
SPXHANDLE
SPXHR

Type definition for SPX result codes.

SPXKEYWORDHANDLE
SPXLUMODELHANDLE
SPXPARTICIPANTHANDLE
SPXPHRASEHANDLE
SPXPROPERTYBAGHANDLE
SPXRECOHANDLE
SPXRESULTHANDLE
SPXSESSIONHANDLE
SPXSPEECHCONFIGHANDLE
SPXSYNTHHANDLE
SPXTRIGGERHANDLE
SPXUSERHANDLE
SpeechConfig_ProfanityOption
SpeechConfig_ServicePropertyChannel
SpeechOutputFormat
Speech_Synthesis_Output_Format
Stream_Status
__blkcnt64_t
__blkcnt_t
__blksize_t
__caddr_t
__clock_t
__clockid_t
__daddr_t
__dev_t
__fsblkcnt64_t
__fsblkcnt_t
__fsfilcnt64_t
__fsfilcnt_t
__fsword_t
__gid_t
__id_t
__ino64_t
__ino_t
__int8_t
__int16_t
__int32_t
__int64_t
__intmax_t
__intptr_t
__key_t
__loff_t
__mode_t
__nlink_t
__off64_t
__off_t
__pid_t
__quad_t
__rlim64_t
__rlim_t
__sig_atomic_t
__socklen_t
__ssize_t
__suseconds_t
__syscall_slong_t
__syscall_ulong_t
__time_t
__timer_t
__u_char
__u_int
__u_long
__u_quad_t
__u_short
__uid_t
__uint8_t
__uint16_t
__uint32_t
__uint64_t
__uintmax_t
__useconds_t
_spxhandle
const_char_ptr
int_fast8_t
int_fast16_t
int_fast32_t
int_fast64_t
int_least8_t
int_least16_t
int_least32_t
int_least64_t
intmax_t
max_align_t
uint_fast8_t
uint_fast16_t
uint_fast32_t
uint_fast64_t
uint_least8_t
uint_least16_t
uint_least32_t
uint_least64_t
uintmax_t
wchar_t