Skip to content

Commit

Permalink
Change: base64ImageToUriを使うように
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Sep 25, 2022
1 parent 396010c commit cf6bf19
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/store/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ import {
currentDateString,
} from "./utility";
import { createPartialStore } from "./vuex";
import { base64ImageToUri } from "@/helpers/imageHelper";

async function generateUniqueIdAndQuery(
state: State,
Expand Down Expand Up @@ -414,7 +415,7 @@ export const audioStore = createPartialStore<AudioStoreTypes>({
styleName: style.name,
styleId: style.id,
engineId,
iconPath: base64ToUrl(styleInfo.icon, "image/png"),
iconPath: base64ImageToUri(styleInfo.icon),
voiceSamplePaths: voiceSamples,
};
});
Expand All @@ -435,7 +436,7 @@ export const audioStore = createPartialStore<AudioStoreTypes>({
});
const styles = getStyles(speaker, speakerInfo);
const characterInfo: CharacterInfo = {
portraitPath: base64ToUrl(speakerInfo.portrait, "image/png"),
portraitPath: base64ImageToUri(speakerInfo.portrait),
metas: {
speakerUuid: speaker.speakerUuid,
speakerName: speaker.name,
Expand Down

0 comments on commit cf6bf19

Please sign in to comment.