mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Strip emojis on realistic speech text
This commit is contained in:
parent
9acce06744
commit
d484d26f98
1 changed files with 2 additions and 1 deletions
|
|
@ -4,6 +4,7 @@ import {
|
|||
TextToSpeechOutput,
|
||||
} from './textToSpeech'
|
||||
import axios from 'axios'
|
||||
import { stripEmojis } from './htmlToSsml'
|
||||
|
||||
const getRealisticVoiceId = (name: string | undefined) => {
|
||||
const voiceList = [
|
||||
|
|
@ -57,7 +58,7 @@ export class RealisticTextToSpeech implements TextToSpeech {
|
|||
const response = await axios.post<Buffer>(
|
||||
requestUrl,
|
||||
{
|
||||
text: input.text,
|
||||
text: stripEmojis(input.text),
|
||||
},
|
||||
{
|
||||
headers: HEADERS,
|
||||
|
|
|
|||
Loading…
Reference in a new issue