From 9e25e9969f67b3b8d61b41dc08fa149830c2e7c0 Mon Sep 17 00:00:00 2001 From: Hongbo Wu Date: Wed, 28 Sep 2022 13:10:26 +0800 Subject: [PATCH] Exports htmlToSpeech in tts module (#1253) --- packages/text-to-speech/src/index.ts | 8 +++++++- packages/text-to-speech/tsconfig.json | 2 +- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/packages/text-to-speech/src/index.ts b/packages/text-to-speech/src/index.ts index 5c4902fdf..d38adbf8b 100644 --- a/packages/text-to-speech/src/index.ts +++ b/packages/text-to-speech/src/index.ts @@ -13,7 +13,7 @@ import { TextToSpeechInput, } from './textToSpeech' import { File, Storage } from '@google-cloud/storage' -import { endSsml, startSsml } from './htmlToSsml' +import { endSsml, htmlToSpeechFile, startSsml } from './htmlToSsml' import crypto from 'crypto' import { createRedisClient } from './redis' @@ -236,3 +236,9 @@ export const textToSpeechStreamingHandler = Sentry.GCPFunction.wrapHttpFunction( } } ) + +module.exports = { + htmlToSpeechFile, + textToSpeechStreamingHandler, + textToSpeechHandler, +} diff --git a/packages/text-to-speech/tsconfig.json b/packages/text-to-speech/tsconfig.json index c980a6b1f..42c16d244 100644 --- a/packages/text-to-speech/tsconfig.json +++ b/packages/text-to-speech/tsconfig.json @@ -7,5 +7,5 @@ // Generate d.ts files "declaration": true }, - "include": ["src", "test"], + "include": ["src"], }