建议使用TextReader,可以将文本实时转化成语音并进行朗读,适用于一些新闻类、小说类等文本内容浏览类APP。参考文档如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/speech-textreader-api-V5富文本组件通常是用RichText,用来解析并显示HTML格式文本。文档如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-basic-components-richtext-V5
建议使用TextReader,可以将文本实时转化成语音并进行朗读,适用于一些新闻类、小说类等文本内容浏览类APP。
参考文档如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/speech-textreader-api-V5
富文本组件通常是用RichText,用来解析并显示HTML格式文本。
文档如下:https://developer.huawei.com/consumer/cn/doc/harmonyos-references-V5/ts-basic-components-richtext-V5