Skip to content
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

tweak: new reserved tts server #620

Closed
wants to merge 9 commits into from
Closed

Conversation

Werzet
Copy link

@Werzet Werzet commented Nov 4, 2023

Что этот PR делает

Добавлена реализация нового ТТС провайдера от WD.

Почему это хорошо для игры

На случай проблем с Silero есть резервный провайдер.

Изображения изменений

Тестирование

Changelog

🆑
tweak: Резервный ТТС провайдер от WD
/:cl:

@AyIong
Copy link
Collaborator

AyIong commented Nov 4, 2023

image

Copy link

@Furrior Furrior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Раз тут авторизация через заголовок запроса, то добавь запрет на чтение заголовков хттп запросов тоже. Ну либо сделай то, что мне лень было делать - добавь цензуру токенов с оставлением возможности просматривать запросы.

Copy link

@Furrior Furrior left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А вообще, не пойму, зачем пропихнул везде файлнейм, но с телефона такое себе разбираться

api_url = "https://pubtts.ss14.su/api/v1/tts"
skip_explicit_file_save = TRUE

/datum/tts_provider/white_dream/vv_edit_var(var_name, var_value)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А тут я скилл ишу, что засунул это в силеро. Этому лучше быть в родительском классе просто, чем копипастить в два места

if(LAZYLEN(tts_requests_queue) > tts_requests_queue_limit)
is_enabled = FALSE
to_chat(world, span_announcement("SERVER: очередь запросов превысила лимит, подсистема SStts220 принудительно отключена!"))
return FALSE

if(tts_rps_counter < tts_rps_limit)
var/datum/tts_provider/provider = seed.provider
provider.request(text, seed, proc_callback)
provider.request(text, seed, proc_callback, fileName)
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Звонили из зоопарка, говорят шарписы верблюда потеряли. Не видели?

@Nonne46
Copy link

Nonne46 commented Nov 9, 2023

Ну там вот ещё апдейт по голосам... с https://pubtts.ss14.su/api/v1/tts/speakers

/datum/tts_seed/white_dream/elenwen
	name = "Elenwen"
	value = "elenwen"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/emperor
	name = "Emperor"
	value = "emperor"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/guard
	name = "Guard"
	value = "guard"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/hagraven
	name = "Hagraven"
	value = "hagraven"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/hermaeus_mora
	name = "Hermaeus Mora"
	value = "hermaeus_mora"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/nord
	name = "Nord"
	value = "nord"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/ulfric
	name = "Ulfric"
	value = "ulfric"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/cerys
	name = "Cerys"
	value = "cerys"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE
	
/datum/tts_seed/white_dream/judy
	name = "Judy"
	value = "judy"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/mitch
	name = "Mitch"
	value = "mitch"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/skippy
	name = "Skippy"
	value = "skippy"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/butch
	name = "Butch"
	value = "butch"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/marcus
	name = "Marcus"
	value = "marcus"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/sulik
	name = "Sulik"
	value = "sulik"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/good_thalya
	name = "Good Thalya"
	value = "good_thalya"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

@github-actions github-actions bot added the Merge Conflict Ну блять... label Nov 19, 2023
@Nonne46
Copy link

Nonne46 commented Dec 2, 2023

UPD:

/datum/tts_seed/white_dream/astrid
	name = "Astrid"
	value = "astrid"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/maven
	name = "Maven"
	value = "maven"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/nazir
	name = "Nazir"
	value = "nazir"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE
	
/datum/tts_seed/white_dream/jackie
	name = "Jackie"
	value = "jackie"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE
	
/datum/tts_seed/white_dream/evil_thalya
	name = "Evil Thalya"
	value = "evil_thalya"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/dude
	name = "Dude"
	value = "dude"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/anduin
	name = "Anduin"
	value = "anduin"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/brukan
	name = "Brukan"
	value = "brukan"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

@Legendaxe Legendaxe force-pushed the master branch 2 times, most recently from e6c58c1 to add632e Compare December 16, 2023 18:44
@AyIong AyIong added the Do Not Merge Не заливать. В ожидании хэда/хоста. Или просто временный тестмерж. label Jan 18, 2024
@Nonne46
Copy link

Nonne46 commented Jan 24, 2024

UPD:

/datum/tts_seed/white_dream/puchkow
	name = "Puchkow"
	value = "puchkow"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/moriarti
	name = "Moriarti"
	value = "moriarti"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE


/datum/tts_seed/white_dream/neco_arc_2
	name = "Neco Arc 2"
	value = "neco_arc_2"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/angry_neco_arc
	name = "Angry Neco Arc"
	value = "angry_neco_arc"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/villager
	name = "Villager"
	value = "villager"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/squidward
	name = "Squidward"
	value = "squidward"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE


/datum/tts_seed/white_dream/garrosh
	name = "Garrosh"
	value = "garrosh"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/jaina
	name = "Jaina"
	value = "jaina"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/adjutant
	name = "Adjutant"
	value = "adjutant"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/hanson
	name = "Hanson"
	value = "hanson"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/bralik
	name = "Bralik"
	value = "bralik"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/horner
	name = "Horner"
	value = "horner"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/amitkakkar
	name = "Amitkakkar"
	value = "amitkakkar"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/eleazarfig
	name = "Eleazarfig"
	value = "eleazarfig"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/ernielark
	name = "Ernielark"
	value = "ernielark"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/ignatiaflootravel
	name = "Ignatiaflootravel"
	value = "ignatiaflootravel"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/lodgok
	name = "Lodgok"
	value = "lodgok"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/phineasblack
	name = "Phineasblack"
	value = "phineasblack"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/ranrak
	name = "Ranrak"
	value = "ranrak"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/victorrookwood
	name = "Victorrookwood"
	value = "victorrookwood"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/zenobianoke
	name = "Zenobianoke"
	value = "zenobianoke"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

/datum/tts_seed/white_dream/gladwinmoon
	name = "Gladwinmoon"
	value = "gladwinmoon"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_MALE

/datum/tts_seed/white_dream/matildaweasley
	name = "Matildaweasley"
	value = "matildaweasley"
	category = TTS_CATEGORY_OTHER
	gender = TTS_GENDER_FEMALE

@AyIong
Copy link
Collaborator

AyIong commented Feb 26, 2024

Когда голос ПАПИЧА в моей любимой игре про космических космонавтиков 13?

@dj-34
Copy link
Collaborator

dj-34 commented Mar 14, 2024

Задрафчу пока, чтоб глаза не мозолило

@dj-34 dj-34 marked this pull request as draft March 14, 2024 03:30
Copy link

github-actions bot commented Apr 4, 2024

This pull request seems to be stale as there have been no changes in 14 days, please make changes within 7 days or the PR will be closed. If you believe this is a mistake, please inform a development team member on Discord.

@github-actions github-actions bot added the Stale ПР долго был не активен, и требует обновления. label Apr 4, 2024
@AyIong AyIong added Stale Exempt PR не может быть устаревшим. Видать кто-то подкупил хэда. and removed Stale ПР долго был не активен, и требует обновления. labels Apr 4, 2024
Copy link

This pull request seems to be stale as there have been no changes in 14 days, please make changes within 7 days or the PR will be closed. If you believe this is a mistake, please inform a development team member on Discord.

@github-actions github-actions bot added the Stale ПР долго был не активен, и требует обновления. label Apr 19, 2024
Copy link

This pull request has not received any updates since being marked stale, and as such is now being automatically closed. Please feel free to re-open this pull request or open a new one once you have new updates.

@github-actions github-actions bot closed this Apr 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Do Not Merge Не заливать. В ожидании хэда/хоста. Или просто временный тестмерж. Merge Conflict Ну блять... 📜 CL валиден Stale Exempt PR не может быть устаревшим. Видать кто-то подкупил хэда. Stale ПР долго был не активен, и требует обновления.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants