tts-narrator
Advanced tools
Comparing version 1.0.16 to 1.0.17
@@ -36,3 +36,3 @@ import { flags } from '@oclif/command'; | ||
protected sectionRange: MultiRange | undefined; | ||
constructor(scriptFilePath: string, flags: Flags<typeof scriptProcessorFlags>); | ||
constructor(scriptFilePath: string, flags: Flags<typeof scriptProcessorFlags>, cliConsole?: DefaultCliConsole); | ||
protected hash(ssml: string, _paragraph: NarrationParagraph): string; | ||
@@ -39,0 +39,0 @@ protected loadScript(): Promise<void>; |
@@ -44,6 +44,6 @@ "use strict"; | ||
class ScriptProcessor { | ||
constructor(scriptFilePath, flags) { | ||
constructor(scriptFilePath, flags, cliConsole) { | ||
this.scriptFilePath = scriptFilePath; | ||
this.flags = flags; | ||
this.cliConsole = (0, oclif_utils_1.cliConsoleWithColour)(this.flags, chalk_1.default); | ||
this.cliConsole = cliConsole !== null && cliConsole !== void 0 ? cliConsole : (0, oclif_utils_1.cliConsoleWithColour)(this.flags, chalk_1.default); | ||
} | ||
@@ -50,0 +50,0 @@ hash(ssml, _paragraph) { |
{ | ||
"name": "tts-narrator", | ||
"version": "1.0.16", | ||
"version": "1.0.17", | ||
"description": "Generate narration with Text-To-Speech technology", | ||
@@ -5,0 +5,0 @@ "main": "dist/types.js", |
@@ -1068,3 +1068,3 @@ # tts-narrator | ||
• **new ScriptProcessor**(`scriptFilePath`, `flags`) | ||
• **new ScriptProcessor**(`scriptFilePath`, `flags`, `cliConsole?`) | ||
@@ -1077,2 +1077,3 @@ ###### Parameters | ||
| `flags` | `Object` | | ||
| `cliConsole?` | `CliConsole`<`fn`, `fn`, `fn`, `fn`\> | | ||
@@ -1079,0 +1080,0 @@ #### Properties |
Sorry, the diff of this file is not supported yet
84119
1609