feat: support TTS & STT (#443)

*  feat(tts): Add tts and stt basic features

*  feat(tts): Handle error

* 💄 style(tts): Add alert to error handler

* 🐛 fix(tts): Error display

* ♻️ refactor: refactor the openai initial code to the createBizOpenAI

* ♻️ refactor(tts): Refactor header config

*  feat: Add TTS voice preview

* 🐛 fix(tts): Fix header

* 🐛 fix: Fix api

---------

Co-authored-by: Arvin Xu <arvinx@foxmail.com>
This commit is contained in:
CanisMinor
2023-11-19 21:43:58 +08:00
committed by GitHub
parent 26ef087fb3
commit 4fa2ef410f
87 changed files with 1936 additions and 229 deletions
+4 -4
View File
@@ -15,11 +15,11 @@ const createImpl = (createState: any) => {
// Reset all stores after each test run
beforeEach(() => {
act(() =>
{ for (const resetFn of storeResetFns) {
act(() => {
for (const resetFn of storeResetFns) {
resetFn();
} },
);
}
});
});
export const createWithEqualityFn = (f: any) => (f === undefined ? createImpl : createImpl(f));