【发布时间】:2023-01-22 20:25:14
【问题描述】:
我一直在尝试在我的 flutter 项目中实现 amazon polly,但我无法在 iOS 设备上运行它。它在 android 上工作得很好。我使用的是 iOS 不支持的字节源。
BytesSource source = BytesSource(bytes);
await audioPlayer.play(source);
在文档中写道:
/// Source containing the actual bytes of the media to be played.
///
/// This is currently only supported for Android (SDK >= 23).
所以我的问题是如何使用 audioplayers 包在 iOS 或 macOS 设备中播放字节?我是否需要使用其他软件包或是否有可用的解决方法?
【问题讨论】: