ankidroid / Anki-Android

AnkiDroid: Anki flashcards on Android. Your secret trick to achieve superhuman information retention.
GNU General Public License v3.0
8.6k stars 2.23k forks source link

Audio stops prematurely when "Automatically play audio" option enabled #1729

Closed hssm closed 6 years ago

hssm commented 9 years ago

Originally reported on Google Code with ID 827

What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of AnkiDroid are you using? On what version of Android?

Please provide any additional information below.

Reported by Broken.zhou on 2011-10-12 10:33:45

hssm commented 9 years ago
Sorry, I just press Enter incautiously.

Title is "Audio doesn't play fully when Play Sounds Instantly".
Version 1.0Beta5.
SmartPhone:Droid X

I use the mp3 audio file. For example a word "but" ankidroid will play "but.mp3".
But the last 0.5 second will be cut off when "when Play Sounds Instantly". "But" sounds
like "bu".

Click the Audio Play button works normally here.

Reported by Broken.zhou on 2011-10-12 10:38:37

hssm commented 9 years ago

Reported by nicolas.raoul on 2011-10-12 10:55:42

hssm commented 9 years ago
I am seeing this issue on my Kindle Fire, which I think runs Android 2.3.

Reported by dshockle@hotmail.com on 2011-12-09 00:49:39

hssm commented 9 years ago
It depends on Ankiweb doesn't download audio folder of decks, so for playing audio we
should copy audio folders from /.anki/decks/ (or Dropbox folders if we store audio
file on it) to Ankidroid folder: doing so Ankidroid plays audio.

Reported by fabio.iannone on 2012-03-04 19:50:15

hssm commented 9 years ago
I think the problem is not there. Anki indeed plays the audio, but the issue is that
it will truncate last second or so of audio. I have that issue on my Kindle Fire with
CM7. On other hand if you play audio manually (by pressing that small "play" button
that shows up on the card) everything works normally.

Reported by jakub.zablocki on 2012-03-05 15:59:50

hssm commented 9 years ago
Yes.

Reported by Broken.zhou on 2012-03-06 04:35:11

hssm commented 9 years ago
I can confirm this. 

Version: 1.1.3
SmartPhone: Xperia X10 Mini, MiniCM 7-2.2.0, Android 2.3.7

My sound files are in .ogg, not the .mp3. I was trying to learn morse code which is
nearly impossible, the last tone is not present if it is a dot or sounds like a dot
if it is a dash. When I play the sound manually, it works correctly.

Reported by Schiroo on 2012-07-21 15:25:22

hssm commented 9 years ago
Is this still happening with AnkiDroid 2.0beta?

I encourage you to try the beta and let us know:
http://code.google.com/p/ankidroid/downloads

Thanks for your feedback and thanks for using AnkiDroid!
Nicolas

Reported by nicolas.raoul on 2012-07-30 07:13:10

hssm commented 9 years ago
This is still happening with the latest AnkiDroid v2.0beta18. When AnkiDroid plays an
ogg file automatically, a small bit is omitted from the end. When played manually,
the whole sound is heard.

Reported by tourainer on 2012-10-13 11:43:14

hssm commented 9 years ago
Sorry, I'm wrong.  Not reproducible with git/master.

Reported by Broken.zhou on 2013-01-28 14:57:54

hssm commented 9 years ago
This is still happening with the latest AnkiDroid v2.0.1 and AnkiDroid v2.1alpha4

It's so bad...

Reported by lucky.lau.82 on 2013-06-14 08:10:28

hssm commented 9 years ago
I have never seen this issue before on any of my devices. Is anyone still experiencing
it?

Reported by perceptualchaos2 on 2015-06-02 04:40:39

nikoshark commented 8 years ago

I'm having this exact same problem on my Galaxy Tab A6. Strangely, though, it only happens when I have bluetooth headphones on, and even then only for some cards. Any ideas?

pechyonkin commented 6 years ago

I have encountered this issue today on my Mac. A couple of days ago it worked smoothly, but today it truncates the last part of each audio.

pechyonkin commented 6 years ago

I also noticed the problem persists if I use my wireless headphones (AirPods). When I switch to MacBook Pro's internal speakers, it disappears.

mikehardy commented 6 years ago

Hmm. Bluetooth but not internal sounds like buffer issues to me. They're more popular now as well . If you could provide anki and android versions it could help. I have Bluetooth headphones I should be able to reproduce

mikehardy commented 6 years ago

Wait, Mac is anki desktop separate team. Is this reproducible on Android with ankidroid?

timrae commented 6 years ago

This issue is 7 years old, there's no way it's the same bug, and the user is clearly talking about Anki desktop 😅

mikehardy commented 6 years ago

pre-coffee