File tree 4 files changed +9
-4
lines changed
4 files changed +9
-4
lines changed Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
1
2
2
3
npx --no -- commitlint --edit ${1}
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env sh
1
2
2
3
npx --no-install lint-staged
Original file line number Diff line number Diff line change 1
1
import cors from '../lib/cors' ;
2
- import { EdgeSpeechPayload , EdgeSpeechTTS } from '../src/core' ;
2
+ import { EdgeSpeechPayload , createEdgeSpeech } from '../src/core/EdgeSpeechTTS/createEdgeSpeech ' ;
3
3
4
4
export const config = {
5
5
runtime : 'edge' ,
@@ -9,7 +9,7 @@ export default async (req: Request) => {
9
9
if ( req . method !== 'POST' ) return new Response ( 'Method Not Allowed' , { status : 405 } ) ;
10
10
const payload = ( await req . json ( ) ) as EdgeSpeechPayload ;
11
11
12
- const res = await EdgeSpeechTTS . createRequest ( { payload } ) ;
12
+ const res = await createEdgeSpeech ( { payload } ) ;
13
13
14
14
return cors ( req , res ) ;
15
15
} ;
Original file line number Diff line number Diff line change 1
1
import cors from '../lib/cors' ;
2
- import { MicrosoftSpeechPayload , MicrosoftSpeechTTS } from '../src/core' ;
2
+ import {
3
+ MicrosoftSpeechPayload ,
4
+ createMicrosoftSpeech ,
5
+ } from '../src/core/MicrosoftSpeechTTS/createMicrosoftSpeech' ;
3
6
4
7
export const config = {
5
8
runtime : 'edge' ,
@@ -9,7 +12,7 @@ export default async (req: Request) => {
9
12
if ( req . method !== 'POST' ) return new Response ( 'Method Not Allowed' , { status : 405 } ) ;
10
13
const payload = ( await req . json ( ) ) as MicrosoftSpeechPayload ;
11
14
12
- const res = await MicrosoftSpeechTTS . createRequest ( { payload } ) ;
15
+ const res = await createMicrosoftSpeech ( { payload } ) ;
13
16
14
17
return cors ( req , res ) ;
15
18
} ;
You can’t perform that action at this time.
0 commit comments