-
Notifications
You must be signed in to change notification settings - Fork 4
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
Migrate: Java APIを使うように #37
Conversation
# generated speakerInfo.json | ||
public/speakerInfos.json |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jsonファイルが大きくなりすぎて(51MB近く)大変なことになってたので分割。
externalNativeBuild { | ||
cmake { | ||
path file('src/main/cpp/CMakeLists.txt') | ||
version '3.22.1' | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
C++に勝利しました。やったぜ
call.resolve(ret) | ||
} | ||
|
||
@PluginMethod | ||
fun getSupportedDevicesJson(call: PluginCall) { | ||
val ret = JSObject() | ||
ret.put("value", core!!.voicevoxGetSupportedDevicesJson()) | ||
// TODO: ハードコードをやめてちゃんと取得する | ||
ret.put("value", "{\"cpu\": true, \"cuda\": false, \"dml\": false}") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ここら辺はあとでCoreにPR出します。
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!!!!
楽しみですね!!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!!!
内容
Voicevox CoreのJava APIを使うようにします。
また、それに伴って、色々な部分を実際のアセットに置き換えます。
関連 Issue
スクリーンショット・動画など
(なし)
その他
(なし)