74808f086e
* feat: Replace Legacy Media Controls with Nitro-Powered Playback * feat: Add TTS Engine Selection * chore: Remove User-Facing Error Reporting * refactor: Combine `Tts` and `TtsSession` Imports from `nitro-tts` Module --------- Co-authored-by: Claude <noreply@anthropic.com>
35 lines
740 B
Swift
Generated
35 lines
740 B
Swift
Generated
///
|
|
/// TtsParagraph.swift
|
|
/// This file was generated by nitrogen. DO NOT MODIFY THIS FILE.
|
|
/// https://github.com/mrousavy/nitro
|
|
/// Copyright © Marc Rousavy @ Margelo
|
|
///
|
|
|
|
import NitroModules
|
|
|
|
/**
|
|
* Represents an instance of `TtsParagraph`, backed by a C++ struct.
|
|
*/
|
|
public typealias TtsParagraph = margelo.nitro.nitrotts.TtsParagraph
|
|
|
|
public extension TtsParagraph {
|
|
private typealias bridge = margelo.nitro.nitrotts.bridge.swift
|
|
|
|
/**
|
|
* Create a new instance of `TtsParagraph`.
|
|
*/
|
|
init(id: String, text: String) {
|
|
self.init(std.string(id), std.string(text))
|
|
}
|
|
|
|
@inline(__always)
|
|
var id: String {
|
|
return String(self.__id)
|
|
}
|
|
|
|
@inline(__always)
|
|
var text: String {
|
|
return String(self.__text)
|
|
}
|
|
}
|