tts220 
Vars | |
| debug_mode_enabled | Is debug mode enabled or not. Information about sanitized_messages_cache_hit and sanitized_messages_cache_miss is printed to debug logs each SS fire |
|---|---|
| gender_table | Mapping of BYOND gender to TTS gender |
| message_timeout | TTS messages won't play if their requests took longer than this duration of time. |
| sanitized_messages_cache | List of all messages that were sanitized as: meesage md5 hash => message |
| sanitized_messages_cache_hit | Amount of message duplicates that were sanitized current SS fire. Debug purpose only |
| sanitized_messages_cache_miss | Amount of unique messages that were sanitized current SS fire. Debug purpose only |
| sanitized_messages_caching | Whether or not caching of sanitized messages is performed |
| tts_acronym_replacements | Replacement map for acronyms for proper TTS spelling. Not private because replacetext can use only global procs |
| tts_effects_in_progress | Ffmpeg runs in progress, same format as tts_effects_queue. Their output file exists but is incomplete until the run ends. |
| tts_effects_queue | Ffmpeg queue. Is an assoc list. Each entry is a filename mapped to the list of sound processing requests which require it. |
| tts_error_raw | Last errored requests' contents |
| tts_errors | Assoc list of request error codes |
| tts_job_replacements | Replacement map for jobs for proper TTS spelling |
| tts_local_channels_by_owner | List of currently existing binding of atom and sound channel: atom => sound_channel. |
| tts_local_queue_ends_by_owner | When the messages queued on each owner's channel are expected to finish playing, per listener: atom => list(listener weakref => world.time) |
| tts_providers | List of all available TTS providers |
| tts_queue | General request queue |
| tts_queue_timestamps | Time each pending playback request was first queued: filename => world.time |
| tts_request_failed | Amount of errored requests to providers |
| tts_request_succeeded | Amount of successfull requests to providers |
| tts_requests_queue | Lazy list of request that need to performed to TTS provider API |
| tts_reused | Amount of cache hits |
| tts_rps | Requests per Second (RPS), only real API requests |
| tts_rrps | Reused Requests per Second (RRPS), only reused requests |
| tts_seeds | List of all available TTS seeds |
| tts_seeds_by_gender | List of all tts seeds mapped by TTS gender: tts gender => list of seeds |
| tts_seeds_names | List of all available TTS seed names |
| tts_seeds_names_by_donator_levels | List of all available TTS seed names, mapped by donator level for faster access |
| tts_trps | Total Requests per Second (TRPS), all TTS request, even reused |
| tts_wanted | All time tts uses |
Procs | |
| drop_pending_tts | Removes the pending playback request of a filename, together with all its playback callbacks |
| get_local_channel_by_owner | Returns the persistent channel the owner's TTS messages queue on, reserving it on first use |
| is_pending_tts_expired | Whether the pending playback request of a filename has outlived the message timeout |
| play_sfx | Queues a sound effect on the channel of the TTS message it accompanies |
| queue_local_message | Books a message of sound_length on the owner's channel for each listener - their client plays the owner's messages back to back.
Returns how long until the message has played for the most backlogged listener. |
| release_local_channel | Unbinds the owner's channel. It returns to the pool only once clients should be done playing the owner's queued messages. |
Var Details
debug_mode_enabled 
Is debug mode enabled or not. Information about sanitized_messages_cache_hit and sanitized_messages_cache_miss is printed to debug logs each SS fire
gender_table 
Mapping of BYOND gender to TTS gender
message_timeout 
TTS messages won't play if their requests took longer than this duration of time.
sanitized_messages_cache 
List of all messages that were sanitized as: meesage md5 hash => message
sanitized_messages_cache_hit 
Amount of message duplicates that were sanitized current SS fire. Debug purpose only
sanitized_messages_cache_miss 
Amount of unique messages that were sanitized current SS fire. Debug purpose only
sanitized_messages_caching 
Whether or not caching of sanitized messages is performed
tts_acronym_replacements 
Replacement map for acronyms for proper TTS spelling. Not private because replacetext can use only global procs
tts_effects_in_progress 
Ffmpeg runs in progress, same format as tts_effects_queue. Their output file exists but is incomplete until the run ends.
tts_effects_queue 
Ffmpeg queue. Is an assoc list. Each entry is a filename mapped to the list of sound processing requests which require it.
tts_error_raw 
Last errored requests' contents
tts_errors 
Assoc list of request error codes
tts_job_replacements 
Replacement map for jobs for proper TTS spelling
tts_local_channels_by_owner 
List of currently existing binding of atom and sound channel: atom => sound_channel.
tts_local_queue_ends_by_owner 
When the messages queued on each owner's channel are expected to finish playing, per listener: atom => list(listener weakref => world.time)
tts_providers 
List of all available TTS providers
tts_queue 
General request queue
tts_queue_timestamps 
Time each pending playback request was first queued: filename => world.time
tts_request_failed 
Amount of errored requests to providers
tts_request_succeeded 
Amount of successfull requests to providers
tts_requests_queue 
Lazy list of request that need to performed to TTS provider API
tts_reused 
Amount of cache hits
tts_rps 
Requests per Second (RPS), only real API requests
tts_rrps 
Reused Requests per Second (RRPS), only reused requests
tts_seeds 
List of all available TTS seeds
tts_seeds_by_gender 
List of all tts seeds mapped by TTS gender: tts gender => list of seeds
tts_seeds_names 
List of all available TTS seed names
tts_seeds_names_by_donator_levels 
List of all available TTS seed names, mapped by donator level for faster access
tts_trps 
Total Requests per Second (TRPS), all TTS request, even reused
tts_wanted 
All time tts uses
Proc Details
drop_pending_tts
Removes the pending playback request of a filename, together with all its playback callbacks
get_local_channel_by_owner
Returns the persistent channel the owner's TTS messages queue on, reserving it on first use
is_pending_tts_expired
Whether the pending playback request of a filename has outlived the message timeout
play_sfx
Queues a sound effect on the channel of the TTS message it accompanies
queue_local_message
Books a message of sound_length on the owner's channel for each listener - their client plays the owner's messages back to back.
Returns how long until the message has played for the most backlogged listener.
release_local_channel
Unbinds the owner's channel. It returns to the pool only once clients should be done playing the owner's queued messages.