mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-19 03:17:04 -04:00
- make tts use subcommands
- add moonbase
This commit is contained in:
parent
5c4a02f08f
commit
cc37d5f50b
9 changed files with 87 additions and 32 deletions
|
@ -44,11 +44,11 @@ const Api = Object.freeze({
|
|||
SEARCH_YOUTUBE: '/search/youtube',
|
||||
|
||||
TTS_IMTRANSLATOR: '/tts/imtranslator',
|
||||
TTS_MOONBASE: '/tts/moonbase',
|
||||
TTS_PLAYHT: '/tts/playht',
|
||||
TTS_POLLY: '/tts/polly',
|
||||
TTS_SAPI4: '/tts/sapi4',
|
||||
TTS_TIKTOK: '/tts/tiktok',
|
||||
TTS_VOICEFORGE: '/tts/voiceforge',
|
||||
TTS_TIKTOK: '/tts/tiktok'
|
||||
|
||||
UTILS_EMOJIPEDIA: '/utils/emojipedia',
|
||||
UTILS_INFERKIT: '/utils/inferkit',
|
||||
|
|
|
@ -254,6 +254,12 @@ module.exports.imtranslator = async function(context, text, voice){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.moonbase = async function(context, text){
|
||||
return await request(Api.TTS_MOONBASE, "GET", {}, {
|
||||
text
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.playht = async function(context, text, voice){
|
||||
return await request(Api.TTS_PLAYHT, "GET", {}, {
|
||||
text: text,
|
||||
|
@ -284,13 +290,6 @@ module.exports.tiktok = async function(context, text, voice){
|
|||
})
|
||||
}
|
||||
|
||||
module.exports.voiceforge = async function(context, text, voice){
|
||||
return await request(Api.TTS_VOICEFORGE, "GET", {}, {
|
||||
text: text,
|
||||
voice: voice
|
||||
})
|
||||
}
|
||||
|
||||
module.exports.emojipedia = async function(context, emoji){
|
||||
return await request(Api.UTILS_EMOJIPEDIA, "GET", {}, {
|
||||
emoji: emoji
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue