mirror of
https://github.com/meowarex/rl-mobile.git
synced 2026-08-26 22:17:44 +10:00
WIP | Syllable AI [RL API]
This commit is contained in:
+1
-1
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"tidalVersionCode": 10004,
|
||||
"tidalApkUrl": "https://github.com/meowarex/rl-mobile/releases/download/latest/tidal-stock.apk",
|
||||
"patchesVersion": "1.0.0"
|
||||
"patchesVersion": "1.1.2"
|
||||
}
|
||||
|
||||
@@ -690,6 +690,17 @@
|
||||
|
||||
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
invoke-static {}, Lradiant/WordLyrics;->synthesizeOn()Z
|
||||
|
||||
move-result v0
|
||||
|
||||
if-eqz v0, :no_synthesize
|
||||
|
||||
const-string v0, "&synthesize=true"
|
||||
|
||||
invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;
|
||||
|
||||
:no_synthesize
|
||||
invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;
|
||||
|
||||
move-result-object v2
|
||||
|
||||
@@ -1010,11 +1010,7 @@
|
||||
|
||||
new-array v9, v8, [Ljava/lang/String;
|
||||
|
||||
const-string v10, "text"
|
||||
|
||||
const-string v11, ""
|
||||
|
||||
invoke-virtual {v6, v10, v11}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
invoke-static {v6}, Lradiant/WordLyrics;->lineText(Lorg/json/JSONObject;)Ljava/lang/String;
|
||||
|
||||
move-result-object v10
|
||||
|
||||
@@ -1238,11 +1234,7 @@
|
||||
|
||||
:bs_single
|
||||
# Treat the line as one syllable
|
||||
const-string v8, "text"
|
||||
|
||||
const-string v9, ""
|
||||
|
||||
invoke-virtual {v5, v8, v9}, Lorg/json/JSONObject;->optString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;
|
||||
invoke-static {v5}, Lradiant/WordLyrics;->lineText(Lorg/json/JSONObject;)Ljava/lang/String;
|
||||
|
||||
move-result-object v8
|
||||
|
||||
@@ -1350,6 +1342,22 @@
|
||||
# Baked in by the Manager's options
|
||||
# CTX bits: 0x1 adlibs, 0x2 singers
|
||||
|
||||
# Ask the API to invent syllable timings
|
||||
.method public static synthesizeOn()Z
|
||||
.locals 2
|
||||
|
||||
const v0, __RL_SYNTHESIZE__
|
||||
|
||||
const/4 v1, 0x0
|
||||
|
||||
if-eqz v0, :off
|
||||
|
||||
const/4 v1, 0x1
|
||||
|
||||
:off
|
||||
return v1
|
||||
.end method
|
||||
|
||||
# Is context aware switched on
|
||||
# The mode bits alone can't say "off"
|
||||
.method static ctxOn()Z
|
||||
|
||||
@@ -76,6 +76,15 @@
|
||||
"token": "RL_ROMANIZE",
|
||||
"inline": true
|
||||
},
|
||||
{
|
||||
"type": "toggle",
|
||||
"key": "synthesize",
|
||||
"title": "WIP | AI Generate Syllables",
|
||||
"description": "[Only works with API results] - Generates Syllable timings from Line timings using a self trained AI model ",
|
||||
"default": false,
|
||||
"inline": true,
|
||||
"token": "RL_SYNTHESIZE"
|
||||
},
|
||||
{
|
||||
"type": "toggle",
|
||||
"key": "context_aware",
|
||||
|
||||
Reference in New Issue
Block a user