Files
QZMusic_PC/amll-local/packages/lyric/src/formats/ttml.ts

23 lines
637 B
TypeScript
Raw Normal View History

import {
exportTTML,
parseTTML as parseTTMLPacked,
} from "@applemusic-like-lyrics/ttml";
import type { TTMLLyric } from "../types";
/**
* TTML AMLL
* @param ttmlText
* @returns TTML
*/
export function parseTTML(ttmlText: string): TTMLLyric {
return parseTTMLPacked(ttmlText);
}
/**
* TTML AMLL
* @param ttmlLyric TTML
*/
export function stringifyTTML(ttmlLyric: TTMLLyric): string {
return exportTTML(ttmlLyric);
}