API reference
API reference
Select your platform
No SDKs available
No versions available

WitConstants Class

Fields

const string API_VERSION[Get]
const string SDK_VERSION[Get]
const string CLIENT_NAME[Get]
const string URI_SCHEME[Get]
const string URI_AUTHORITY[Get]
const string URI_GRAPH_AUTHORITY[Get]
const int URI_DEFAULT_PORT[Get]
const WitRequestType DEFAULT_REQUEST_TYPE[Get]
const int DEFAULT_REQUEST_TIMEOUT[Get]
const string HEADER_REQUEST_ID[Get]
const string HEADER_CLIENT_USER_ID[Get]
const string HEADER_AUTH[Get]
const string HEADER_USERAGENT[Get]
const string HEADER_USERAGENT_CONFID_MISSING[Get]
const string HEADER_POST_CONTENT[Get]
const string HEADER_GET_CONTENT[Get]
const string HEADER_TAG_ID[Get]
const string RESPONSE_REQUEST_ID[Get]
const string RESPONSE_CLIENT_USER_ID[Get]
const string RESPONSE_TYPE_KEY[Get]
const string RESPONSE_TYPE_PARTIAL_TRANSCRIPTION[Get]
const string RESPONSE_TYPE_FINAL_TRANSCRIPTION[Get]
const string RESPONSE_TYPE_PARTIAL_NLP[Get]
const string RESPONSE_TYPE_FINAL_NLP[Get]
const string RESPONSE_TYPE_READY_FOR_AUDIO[Get]
const string RESPONSE_TYPE_TTS[Get]
const string RESPONSE_TYPE_ERROR[Get]
const string RESPONSE_TYPE_ABORTED[Get]
const string RESPONSE_TYPE_END[Get]
const string ENDPOINT_SPEECH[Get]
const string ENDPOINT_JSON_MIME[Get]
const int ENDPOINT_SPEECH_SAMPLE_RATE[Get]
const string ENDPOINT_MESSAGE[Get]
const string ENDPOINT_MESSAGE_PARAM[Get]
const string ENDPOINT_JSON_DELIMITER[Get]
const string ENDPOINT_ERROR_PARAM[Get]
const string ERROR_REACHABILITY[Get]
const string ERROR_NO_CONFIG[Get]
const string ERROR_NO_CONFIG_TOKEN[Get]
const string ENDPOINT_TTS[Get]
const string ENDPOINT_TTS_PARAM[Get]
const string ENDPOINT_TTS_EVENTS[Get]
const string ENDPOINT_TTS_EVENT_EXTENSION[Get]
const string ENDPOINT_TTS_NO_CLIP[Get]
const string ENDPOINT_TTS_NO_TEXT[Get]
const int ENDPOINT_TTS_CHANNELS[Get]
const int ENDPOINT_TTS_SAMPLE_RATE[Get]
const float ENDPOINT_TTS_DEFAULT_READY_LENGTH[Get]
const float ENDPOINT_TTS_DEFAULT_MAX_LENGTH[Get]
const int ENDPOINT_TTS_DEFAULT_PRELOAD[Get]
const int ENDPOINT_TTS_BUFFER_LENGTH[Get]
const int ENDPOINT_TTS_DEFAULT_SAMPLE_LENGTH[Get]
const int ENDPOINT_TTS_ERROR_MAX_LENGTH[Get]
const int ENDPOINT_TTS_MAX_TEXT_LENGTH[Get]
const string ERROR_TTS_CACHE_DOWNLOAD[Get]
const string ERROR_TTS_DECODE[Get]
const string ENDPOINT_DICTATION[Get]
const string ENDPOINT_COMPOSER_SPEECH[Get]
const string ENDPOINT_COMPOSER_MESSAGE[Get]
const string ERROR_NO_TRANSCRIPTION[Get]
const string CANCEL_ERROR[Get]
const string CANCEL_MESSAGE_DEFAULT[Get]
const string CANCEL_MESSAGE_PRE_SEND[Get]
const string CANCEL_MESSAGE_PRE_AUDIO[Get]
Error code thrown when an exception is caught during processing or some other general error happens that is not an error from the server
Error code returned when no configuration is defined
Error code returned when the client token has not been set in the Wit configuration.
No data was returned from the server.
Invalid data was returned from the server.
Request was aborted
Request to the server timed out
Default voice name used if no voice is provided
Default style used if no style is provided
Default speed used if no speed is provided
Minimum speed supported by the endpoint (50%)
Maximum speed supported by the endpoint (200%)
Default pitch used if no speed is provided (100%)
Minimum pitch supported by the endpoint (25%)
Maximum pitch supported by the endpoint (200%)
Clip id used for empty text
Default audio type suggested for use
The key in the response body for the response transcription
The key in the response body for the final transcription
The key in the response body for the response NLP intents
The key in the response body for the response NLP entities
The key in the response body for the response NLP traits
Key in the response body for partially built responses
Key in the response body for completed responses
The key in the response body for the action handling
The key in the response body for the final response
The key in the response body for the response code
The key in the response body for the response error message
The server received a request, but there was no transcription detected in the input audio stream.
The active request timed out
const string WIT_SOCKET_URL[Get]
const int WIT_SOCKET_CONNECT_TIMEOUT[Get]
const int WIT_SOCKET_RECONNECT_ATTEMPTS[Get]
const float WIT_SOCKET_RECONNECT_INTERVAL[Get]
const int WIT_SOCKET_RECONNECT_INTERVAL_MIN[Get]
const string WIT_SOCKET_REQUEST_ID_KEY[Get]
const string WIT_SOCKET_CLIENT_USER_ID_KEY[Get]
const string WIT_SOCKET_API_KEY[Get]
const string WIT_SOCKET_CONTENT_KEY[Get]
const string WIT_SOCKET_AUTH_TOKEN[Get]
const string WIT_SOCKET_AUTH_RESPONSE_KEY[Get]
const string WIT_SOCKET_AUTH_RESPONSE_VAL[Get]
const string WIT_SOCKET_AUTH_RESPONSE_ERROR[Get]
const string WIT_SOCKET_DATA_KEY[Get]
const string WIT_SOCKET_ACCEPT_KEY[Get]
const string WIT_SOCKET_END_KEY[Get]
const string WIT_SOCKET_ABORT_KEY[Get]
const string WIT_SOCKET_TRANSCRIBE_KEY[Get]
const string WIT_SOCKET_TRANSCRIBE_MULTIPLE_KEY[Get]
const string WIT_SOCKET_TRANSCRIBE_IS_FINAL[Get]
const string WIT_SOCKET_EXTERNAL_ENDPOINT_KEY[Get]
const string WIT_SOCKET_EXTERNAL_UNKNOWN_CLIENT_USER_KEY[Get]
const string WIT_SOCKET_PUBSUB_SUBSCRIBE_KEY[Get]
const string WIT_SOCKET_PUBSUB_UNSUBSCRIBE_KEY[Get]
const string WIT_SOCKET_PUBSUB_TOPIC_KEY[Get]
const string WIT_SOCKET_PUBSUB_TOPIC_TRANSCRIPTION_KEY[Get]
const string WIT_SOCKET_PUBSUB_TOPIC_COMPOSER_KEY[Get]
const string WIT_SOCKET_PUBSUB_PUBLISH_KEY[Get]
const string WIT_SOCKET_PUBSUB_PUBLISH_TRANSCRIPTION_KEY[Get]
const string WIT_SOCKET_PUBSUB_PUBLISH_COMPOSER_KEY[Get]

Public Statics

/synthesize parameter: The voice id to use when speaking via a voice preset.
/synthesize parameter: Adjusts the style used when speaking with a tts voice
/synthesize parameter: Adjusts the speed at which a voice will speak
,
/synthesize parameter: Adjusts the pitch at which a voice will speak

Static Member Functions

Returns a unique identifier using the current unix timestamp and a randomized guid
Did you find this page helpful?
Thumbs up icon
Thumbs down icon