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 24, 2022
1 parent d31c6cc commit 5340aa5
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 @@ -35,6 +35,7 @@ import {
createKanaRegex,
currentDateString,
} from "./utility";
import { base64ImageToUri } from "@/helpers/imageHelper";

async function generateUniqueIdAndQuery(
state: State,
Expand Down Expand Up @@ -645,7 +646,7 @@ export const audioStore: VoiceVoxStoreOptions<
styleName: style.name,
styleId: style.id,
engineId,
iconPath: base64ToUrl(styleInfo.icon, "image/png"),
iconPath: base64ImageToUri(styleInfo.icon),
voiceSamplePaths: voiceSamples,
};
});
Expand All @@ -666,7 +667,7 @@ export const audioStore: VoiceVoxStoreOptions<
});
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 5340aa5

Please sign in to comment.