tts
Vars | |
available_speakers | A list of available speakers, which are string identifiers of the TTS voices that can be used to generate TTS messages. |
---|---|
average_tts_messages_time | Used to calculate the average time it takes for a tts message to be received from the http server For tts messages which time out, it won't keep tracking the tts message and will just assume that the message took 7 seconds (or whatever the value of message_timeout is) to receive back a response. |
current_processing_http_messages | HTTP requests that are being processed to see if they've been finished |
current_processing_tts_messages | TTS audio files that are being processed on when to be played. |
in_process_http_messages | HTTP requests currently in progress but not being processed yet |
max_concurrent_requests | The max concurrent http requests that can be made at one time. Used to prevent 1 server from overloading the tts server |
message_timeout | TTS messages won't play if requests took longer than this duration of time. |
pitch_enabled | Whether the TTS engine supports pitch adjustment or not. |
queued_http_messages | Queued HTTP requests that have yet to be sent. TTS requests are handled as lists rather than datums. |
queued_tts_messages | An associative list of mobs mapped to a list of their own /datum/tts_request_target |
tts_enabled | Whether TTS is enabled or not |
Procs | |
establish_connection_to_tts | Establishes (or re-establishes) a connection to the TTS server and updates the list of available speakers. This is blocking, so be careful when calling. |
Var Details
available_speakers
A list of available speakers, which are string identifiers of the TTS voices that can be used to generate TTS messages.
average_tts_messages_time
Used to calculate the average time it takes for a tts message to be received from the http server For tts messages which time out, it won't keep tracking the tts message and will just assume that the message took 7 seconds (or whatever the value of message_timeout is) to receive back a response.
current_processing_http_messages
HTTP requests that are being processed to see if they've been finished
current_processing_tts_messages
TTS audio files that are being processed on when to be played.
in_process_http_messages
HTTP requests currently in progress but not being processed yet
max_concurrent_requests
The max concurrent http requests that can be made at one time. Used to prevent 1 server from overloading the tts server
message_timeout
TTS messages won't play if requests took longer than this duration of time.
pitch_enabled
Whether the TTS engine supports pitch adjustment or not.
queued_http_messages
Queued HTTP requests that have yet to be sent. TTS requests are handled as lists rather than datums.
queued_tts_messages
An associative list of mobs mapped to a list of their own /datum/tts_request_target
tts_enabled
Whether TTS is enabled or not
Proc Details
establish_connection_to_tts
Establishes (or re-establishes) a connection to the TTS server and updates the list of available speakers. This is blocking, so be careful when calling.