tts ![code/controllers/subsystem/tts.dm 1](git.png)
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 ![code/controllers/subsystem/tts.dm 24](git.png)
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 ![code/controllers/subsystem/tts.dm 40](git.png)
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 ![code/controllers/subsystem/tts.dm 21](git.png)
HTTP requests that are being processed to see if they've been finished
current_processing_tts_messages ![code/controllers/subsystem/tts.dm 15](git.png)
TTS audio files that are being processed on when to be played.
in_process_http_messages ![code/controllers/subsystem/tts.dm 18](git.png)
HTTP requests currently in progress but not being processed yet
max_concurrent_requests ![code/controllers/subsystem/tts.dm 35](git.png)
The max concurrent http requests that can be made at one time. Used to prevent 1 server from overloading the tts server
message_timeout ![code/controllers/subsystem/tts.dm 32](git.png)
TTS messages won't play if requests took longer than this duration of time.
pitch_enabled ![code/controllers/subsystem/tts.dm 29](git.png)
Whether the TTS engine supports pitch adjustment or not.
queued_http_messages ![code/controllers/subsystem/tts.dm 9](git.png)
Queued HTTP requests that have yet to be sent. TTS requests are handled as lists rather than datums.
queued_tts_messages ![code/controllers/subsystem/tts.dm 12](git.png)
An associative list of mobs mapped to a list of their own /datum/tts_request_target
tts_enabled ![code/controllers/subsystem/tts.dm 27](git.png)
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.