sinProject-Inc/talk

View on GitHub
src/lib/speech/speech_text.ts

Summary

Maintainability
A
0 mins
Test Coverage
import type { BaseText } from '../text/base_text'
import { ValidText } from '../text/valid_text'

export class SpeechText implements BaseText {
    private readonly _text: string

    public constructor(text: string | undefined) {
        const valid_text = new ValidText(text)

        this._text = valid_text.text
    }

    public get text(): string {
        return this._text
    }
}