11
This commit is contained in:
@@ -17,6 +17,10 @@ import {
|
||||
} from "../config/videoPipeline.js";
|
||||
|
||||
import { getVoiceDisplayLabel } from "../utils/voiceLabel.js";
|
||||
import {
|
||||
executeGenerateSpeech,
|
||||
selectAudioHistory,
|
||||
} from "../services/voiceGenerate.js";
|
||||
|
||||
|
||||
|
||||
@@ -153,6 +157,17 @@ export const useWorkflowStore = defineStore("workflow", {
|
||||
|
||||
avatarSelect: null,
|
||||
|
||||
speechGenerating: false,
|
||||
|
||||
generatedAudioPath: "",
|
||||
|
||||
generatedAudioSrc: "",
|
||||
|
||||
currentAudioId: null,
|
||||
|
||||
/** @type {Array<{ id: string, label: string, audioPath: string, audioSrc: string, createdAt: number }>} */
|
||||
audioHistory: [],
|
||||
|
||||
|
||||
|
||||
// 03 视频编辑
|
||||
@@ -430,6 +445,18 @@ export const useWorkflowStore = defineStore("workflow", {
|
||||
|
||||
},
|
||||
|
||||
async generateSpeech() {
|
||||
|
||||
return executeGenerateSpeech(this);
|
||||
|
||||
},
|
||||
|
||||
pickAudioHistory(audioId) {
|
||||
|
||||
selectAudioHistory(this, audioId);
|
||||
|
||||
},
|
||||
|
||||
resetAll() {
|
||||
|
||||
this.$reset();
|
||||
|
||||
Reference in New Issue
Block a user