playWordAudio method
تشغيل صوت كلمة واحدة.
Implementation
Future<void> playWordAudio(WordRef ref) async {
final svc = WordAudioService.instance;
// إذا كانت نفس الكلمة تُشغّل، أوقف
if (svc.isPlaying.value &&
!svc.isPlayingAyahWords.value &&
svc.currentPlayingRef.value == ref) {
await stopWordAudio();
return;
}
await svc.playWord(ref);
update(['word_info_audio']);
}