mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 17:58:55 +00:00
update API to match
This commit is contained in:
1 parent
a2e03a5693
commit
4a51d44d1c
2 files changed
+22
-4
No files matched your search
@@ -1,10 +1,23 @@
|
||||
import { ApiConfig } from "@storyteller/components";
|
||||
|
||||
export interface AudioSource {
|
||||
maybe_media_file_token?: string,
|
||||
maybe_media_upload_token?: string,
|
||||
maybe_tts_result_token?: string,
|
||||
maybe_voice_conversion_result_token?: string,
|
||||
}
|
||||
|
||||
export interface ImageSource {
|
||||
maybe_media_file_token?: string,
|
||||
maybe_media_upload_token?: string,
|
||||
}
|
||||
|
||||
|
||||
export interface EnqueueFaceAnimationRequest {
|
||||
uuid_idempotency_token: string,
|
||||
|
||||
audio_token: string,
|
||||
image_token: string,
|
||||
audio_source: AudioSource,
|
||||
image_source: ImageSource,
|
||||
}
|
||||
|
||||
export interface EnqueueFaceAnimationSuccessResponse {
|
||||
|
||||
@@ -26,8 +26,13 @@ function TestingPage(props: Props) {
|
||||
const doTest = async () => {
|
||||
let request: EnqueueFaceAnimationRequest = {
|
||||
uuid_idempotency_token: uuidv4(),
|
||||
audio_token: "audio_token",
|
||||
image_token: "video_token",
|
||||
audio_source: {
|
||||
maybe_voice_conversion_result_token: "todo",
|
||||
//maybe_media_file_token: "audio_media_token",
|
||||
},
|
||||
image_source: {
|
||||
maybe_media_file_token: "image_media_token",
|
||||
},
|
||||
};
|
||||
|
||||
let result = await EnqueueFaceAnimation(request);
|
||||
|
||||
Reference in new issue
Block a user