-
Notifications
You must be signed in to change notification settings - Fork 7.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ios18 can not play audio The voice can be played on safari webkit #8567
Comments
I found a similar unsolved discussion regarding audio playback issues on iOS devices: Text2speech auto play cannot work (on cloud) [1]. Additionally, there are no specific known issues or bug reports related to audio playback on iOS 18 documented in the Dify repository . However, there are specific configurations required for audio playback on iOS devices. The code includes a compatibility check for the // Compatible with iphone ios17 ManagedMediaSource
const MediaSource = window.MediaSource || window.ManagedMediaSource
if (!MediaSource) {
Toast.notify({
message: 'Your browser does not support audio streaming, if you are using an iPhone, please update to iOS 17.1 or later.',
type: 'error',
})
}
this.mediaSource = MediaSource ? new MediaSource() : null This indicates that for audio playback to work on iOS devices, the device must support If the issue persists on iOS 18, it might be worth investigating further or checking for any recent updates or changes in the codebase that might affect audio playback functionality. |
the version 0.8.3 also has same bug |
@crazywoola, I looked at this, but my problem is that there is an issue with iOS 17.1+Safari browser on my iPhone, this.audio.disableRemotePlayback = true; At this time, it can be played, but the first and second messages of each conversation cannot be played. The voice can be played on the third message. This is the work I have done so far The current expectation is that the first and second messages can be played normally |
@ |
@crazywoola fix at. #8645 (comment) |
Self Checks
Dify version
error
Cloud or Self Hosted
Self Hosted (Source)
Steps to reproduce
ios 18 can not play audio
✔️ Expected Behavior
11111
❌ Actual Behavior
111111
The text was updated successfully, but these errors were encountered: