forked from cmss13-devs/cmss13
-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TTS port fix #7
Open
Perohai
wants to merge
40
commits into
ss220club:master
Choose a base branch
from
Perohai:pr/4
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
TTS port fix #7
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> # About the pull request ss220club/Bandastation#1 # Explain why it's good for the game <!-- Please add a short description of why you think these changes would benefit the game. If you can't justify it in words, it might not be worth adding, and may discourage maintainers from reviewing or merging your PR. This section is not strictly required for (non-controversial) fix PRs or backend PRs. --> # Testing Photographs and Procedure <!-- Include any screenshots/videos/debugging steps of the modified code functioning successfully, ideally including edge cases. --> <!-- !! If you are modifying sprites, you **must** include one or more in-game screenshots or videos of the new sprites. !! --> <details> <summary>Screenshots & Videos</summary> ![image](https://github.com/user-attachments/assets/e5211faa-ee03-43af-8002-6f81f48a0df8) </details> # Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly label your changes in the changelog. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> <!-- If you add a name after the ':cl', that name will be used in the changelog. You must add your CKEY after the CL if your GitHub name doesn't match. Maintainers freely reserve the right to remove and add tags should they deem it appropriate. --> :cl: add: Порт системы модуля с бандастейшин /:cl: <!-- Both :cl:'s are required for the changelog to work! -->
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> # About the pull request Портируем вспомогательные паки: Дефайны, хелперы, сигналлеры и синглтоны. # Explain why it's good for the game <!-- Please add a short description of why you think these changes would benefit the game. If you can't justify it in words, it might not be worth adding, and may discourage maintainers from reviewing or merging your PR. This section is not strictly required for (non-controversial) fix PRs or backend PRs. --> # Testing Photographs and Procedure <!-- Include any screenshots/videos/debugging steps of the modified code functioning successfully, ideally including edge cases. --> <!-- !! If you are modifying sprites, you **must** include one or more in-game screenshots or videos of the new sprites. !! --> <details> <summary>Screenshots & Videos</summary> Put screenshots and videos here with an empty line between the screenshots and the `<details>` tags. </details> # Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly label your changes in the changelog. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> <!-- If you add a name after the ':cl', that name will be used in the changelog. You must add your CKEY after the CL if your GitHub name doesn't match. Maintainers freely reserve the right to remove and add tags should they deem it appropriate. --> :cl: add: Порт вспомогательных паков /:cl: <!-- Both :cl:'s are required for the changelog to work! -->
<!-- Write **BELOW** The Headers and **ABOVE** The comments else it may not be viewable. --> # About the pull request Добавлена возможность говорить на родном русском языке. Документы могут тоже "говорить" на русском. Всякие приставки и прочие текстовые обозначения должны быть тоже на русском. Да, хардкодом. # Explain why it's good for the game <!-- Please add a short description of why you think these changes would benefit the game. If you can't justify it in words, it might not be worth adding, and may discourage maintainers from reviewing or merging your PR. This section is not strictly required for (non-controversial) fix PRs or backend PRs. --> # Testing Photographs and Procedure <!-- Include any screenshots/videos/debugging steps of the modified code functioning successfully, ideally including edge cases. --> <!-- !! If you are modifying sprites, you **must** include one or more in-game screenshots or videos of the new sprites. !! --> ![image](https://github.com/user-attachments/assets/635f35a6-d87f-46fe-9b06-1ee6e48ecea5) ![image](https://github.com/user-attachments/assets/9d0fd9aa-7f15-4ed2-b018-bdfcce384a84) ![image](https://github.com/user-attachments/assets/70f23d7a-e2d9-4ea1-9df5-bec22538661d) ![image](https://github.com/user-attachments/assets/402aa8ab-fcc6-41d7-ac69-23796309c6da) # Changelog <!-- If your PR modifies aspects of the game that can be concretely observed by players or admins you should add a changelog. If your change does NOT meet this description, remove this section. Be sure to properly label your changes in the changelog. Please note that maintainers freely reserve the right to remove and add tags should they deem it appropriate. You can attempt to finagle the system all you want, but it's best to shoot for clear communication right off the bat. --> <!-- If you add a name after the ':cl', that name will be used in the changelog. You must add your CKEY after the CL if your GitHub name doesn't match. Maintainers freely reserve the right to remove and add tags should they deem it appropriate. --> :cl: fix: возможность говорить на РОДНОМ /:cl: <!-- Both :cl:'s are required for the changelog to work! -->
Reviewer's Guide by SourceryThis pull request implements a text-to-speech (TTS) system and ports the existing system to use kilometer units. The TTS settings, including token, URL, and enable/disable status, are configurable within the Sequence diagram for TTS request flowsequenceDiagram
participant C as Client
participant S as SStts220
participant H as SShttp
participant T as TTS Service
C->>S: Request TTS
activate S
S->>S: Sanitize Input
S->>S: Check Cache
alt Cache Hit
S->>C: Play Cached Audio
else Cache Miss
S->>H: Queue HTTP Request
activate H
H->>T: Make API Request
T-->>H: Return Audio Data
H-->>S: Return Response
S->>S: Cache Audio
S->>C: Play Audio
deactivate H
end
deactivate S
Class diagram for TTS componentsclassDiagram
class SStts220 {
+is_enabled: bool
+tts_seeds: list
+tts_providers: list
+tts_queue: list
+get_tts()
+queue_request()
+play_tts()
+sanitize_tts_input()
}
class TTSComponent {
+tts_seed: datum
+traits: list
+cast_tts()
+select_tts_seed()
+tts_seed_change()
}
class TTSSeed {
+name: string
+value: string
+category: string
+gender: string
+provider: datum
}
class TTSProvider {
+name: string
+is_enabled: bool
+request()
+process_response()
}
SStts220 --> TTSSeed
SStts220 --> TTSProvider
TTSComponent --> TTSSeed
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
скримеры в видео |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
About the pull request
Добил пр пупса, ттс проигрывается.
Перенес sshttp на км-ы, немножко подредактировал под него silero dm и http dm + по мелочи.
Ттс (токен, url, включен или нет) настраиваются внутри text_to_speech/code/configuration.dm
Explain why it's good for the game
Так звучит мой голос
Testing Photographs and Procedure
ОСТОРОЖНО ГРОМКИЙ ЗВУК
ОСТОРОЖНО ГРОМКИЙ ЗВУК
ОСТОРОЖНО ГРОМКИЙ ЗВУК
Локальный сервак всрато настроился
freecompress-Desktop_2024.12.31_-_03.34.12.01.mp4
Screenshots & Videos
Put screenshots and videos here with an empty line between the screenshots and the
<details>
tags.Changelog
🆑
fix: TTS System
/:cl:
Summary by Sourcery
Implement a text-to-speech (TTS) system using the Silero model. Configure the TTS settings (token, URL, enabled status) within
text_to_speech/code/configuration.dm
.New Features:
Tests: