Skip to content

Commit

Permalink
Update: remove default import format
Browse files Browse the repository at this point in the history
  • Loading branch information
wxxxcxx committed Aug 21, 2023
1 parent cb928d1 commit 2eca006
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions api/legado.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { Request, Response } from 'express'
import { FORMAT_CONTENT_TYPE } from '../service/edge'
module.exports = async (request: Request, response: Response) => {
console.log('Import url: ' + request.url)
let api = request.query['api']
let name = request.query['name'] ?? '大声朗读'
let voiceName = request.query['voiceName'] ?? 'zh-CN-XiaoxiaoNeural'
let styleName = request.query['styleName']
let styleDegree = request.query['styleDegree']
let voiceFormat =
request.query['voiceFormat'] ?? 'audio-16khz-32kbitrate-mono-mp3'
let voiceFormat = request.query['voiceFormat']
let lexicon = request.query['lexicon'] ?? ''
let token = request.query['token'] ?? ''

Expand Down Expand Up @@ -35,7 +35,7 @@ module.exports = async (request: Request, response: Response) => {
let ssml =
`<speak xmlns="http://www.w3.org/2001/10/synthesis" xmlns:mstts="http://www.w3.org/2001/mstts" xmlns:emo="http://www.w3.org/2009/10/emotionml" version="1.0" xml:lang="en-US">` +
`<voice name="${voiceName}">` +
(lexicon==='' ? '' : `<lexicon uri="${lexicon}"/>`)+
(lexicon === '' ? '' : `<lexicon uri="${lexicon}"/>`) +
(styleName
? `<mstts:express-as style="${styleName}" styledegree="${styleDegree}">`
: ``) +
Expand Down

1 comment on commit 2eca006

@vercel
Copy link

@vercel vercel bot commented on 2eca006 Aug 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

ms-ra-forwarder – ./

ms-ra-forwarder.vercel.app
ms-ra-forwarder-git-master-wxxxcxx.vercel.app
ms-ra-forwarder-wxxxcxx.vercel.app

Please sign in to comment.