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

23 lines
761 B
TypeScript
Raw Normal View History

2023-01-07 14:07:39 +03:00
export const AUDIO_ELEMENT_FOR_PLAY_RESULT = "audio-result"
export const AUDIO_ELEMENT_FOR_TEST_ORIGINAL = "audio-test-original"
export const AUDIO_ELEMENT_FOR_TEST_CONVERTED = "audio-test-converted"
2023-01-12 13:13:17 +03:00
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-04-10 21:07:14 +03:00
export const INDEXEDDB_KEY_DEFAULT_MODEL_TYPE = "INDEXEDDB_KEY_AUDIO_OUTPUT"
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