voice-changer/client/demo/src/const.ts

28 lines
1.2 KiB
TypeScript
Raw Normal View History

2023-01-07 14:07:39 +03:00
2023-08-02 23:15:05 +03:00
export const AUDIO_ELEMENT_FOR_PLAY_RESULT = "audio-result" // 変換後の出力用プレイヤー
export const AUDIO_ELEMENT_FOR_PLAY_MONITOR = "audio-monitor" // 変換後のモニター用プレイヤー
export const AUDIO_ELEMENT_FOR_TEST_ORIGINAL = "audio-test-original" // ??? 使ってないかも。
export const AUDIO_ELEMENT_FOR_TEST_CONVERTED = "audio-test-converted" // ファイルインプットのコントロール
export const AUDIO_ELEMENT_FOR_TEST_CONVERTED_ECHOBACK = "audio-test-converted-echoback" // ファイルインプットのエコーバック
2023-01-29 03:42:45 +03:00
2023-04-04 10:38:30 +03:00
export const AUDIO_ELEMENT_FOR_SAMPLING_INPUT = "body-wav-container-wav-input"
export const AUDIO_ELEMENT_FOR_SAMPLING_OUTPUT = "body-wav-container-wav-output"
2023-01-29 03:42:45 +03:00
2023-02-16 18:09:56 +03:00
export const INDEXEDDB_KEY_AUDIO_OUTPUT = "INDEXEDDB_KEY_AUDIO_OUTPUT"
2023-08-02 23:15:05 +03:00
export const INDEXEDDB_KEY_AUDIO_MONITR = "INDEXEDDB_KEY_AUDIO_MONITOR"
2023-04-21 09:48:12 +03:00
export const INDEXEDDB_KEY_DEFAULT_MODEL_TYPE = "INDEXEDDB_KEY_DEFALT_MODEL_TYPE"
2023-02-16 18:09:56 +03:00
2023-08-09 11:20:22 +03:00
export const MODEL_ICON_BLANK_URL = "/assets/icons/blank.png"
2023-02-16 18:09:56 +03:00
2023-03-13 06:01:33 +03:00
export const isDesktopApp = () => {
if (navigator.userAgent.indexOf('Electron') >= 0) {
return true;
} else {
return false;
}
};
2023-02-16 18:09:56 +03:00
2023-04-21 09:48:12 +03:00