chore: images style
This commit is contained in:
@@ -90,7 +90,7 @@ export const createImages = async (
|
||||
export const textToSpeech = async (params: any, options?: any) => {
|
||||
const res = await fetch(AUDIO_TEXT_TO_SPEECH_API, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(params),
|
||||
body: JSON.stringify(params.data),
|
||||
signal: params.signal
|
||||
});
|
||||
if (!res.ok) {
|
||||
@@ -102,7 +102,7 @@ export const textToSpeech = async (params: any, options?: any) => {
|
||||
export const speechToText = async (params: any, options?: any) => {
|
||||
const res = await fetch(AUDIO_SPEECH_TO_TEXT_API, {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(params),
|
||||
body: JSON.stringify(params.data),
|
||||
signal: params.signal
|
||||
});
|
||||
if (!res.ok) {
|
||||
|
||||
Reference in New Issue
Block a user