helloworld1 / AnyMemo

Advanced Spaced Repetition flashcard learning software for Android.
http://www.anymemo.org
GNU General Public License v2.0
151 stars 53 forks source link

Audio not working with imported cards #351

Closed helloworld1 closed 9 years ago

helloworld1 commented 9 years ago

Original issue 344 created by helloworld1 on 2015-01-09T19:17:06.000Z:

What steps will reproduce the problem?

  1. Importing cards from Mnemosyne
  2. Including the audio

What is the expected output? What do you see instead? I was hoping for the .mp3 audio files to play when revealing the answer, but nothing happens. I think it has to do with the path the audio is being called from, but I've moved the audio to a specific location on the phone and had the app point to that folder, but still nothing.

What is the AnyMemo version (E.g 8.999.1, 9.0, 9.1.1)? Latest. Just installed it a couple days ago.

What is your Android phone model? Samsung S4 (SGH-M919)

What is your Android version? 4.4.4

helloworld1 commented 9 years ago

Comment #1 originally posted by helloworld1 on 2015-01-09T19:33:32.000Z:

The audio will not be imported automatically. You need to move all the mp3 files to the folder anymemo/voice/[your_db_name.db]/ If the mnemosyne card has the audio tag, then you will have audio. If you have trouble doing that, please let me know and attach the imported db file here.

helloworld1 commented 9 years ago

Comment #2 originally posted by helloworld1 on 2015-01-09T21:13:28.000Z:

I guess I'm unsure what you mean. As I said, the image is in the folder that the app is pointing to. So there shouldn't be a problem. Here's what I'm working with:

The database is set to: http://goo.gl/fLdYDn

The folder it's pointing to: http://goo.gl/vT4qHr

What the tag format looks like in each card: http://goo.gl/xfVolM

helloworld1 commented 9 years ago

Comment #3 originally posted by helloworld1 on 2015-01-09T21:35:27.000Z:

I guess I'm unsure what you mean. As I said, I placed the audio in the folder that the app is pointing to. I only did this because I thought that somehow the audio didn't come through (even though the file size of the .card file was large enough to include the audio). So there shouldn't be a problem. Here's what I'm working with:

The database is set to: http://goo.gl/fLdYDn

The folder it's pointing to: http://goo.gl/vT4qHr

What the tag format looks like in each card: http://goo.gl/xfVolM

helloworld1 commented 9 years ago

Comment #4 originally posted by helloworld1 on 2015-01-09T22:27:21.000Z:

The folder you are placing these mp3 files is not correct. it should be anymemo/voice/[youdbname.db]/

  1. Create a folder under voice named as your db's name. E.g. if your db name is abc.xml.db, then your new folder name is "abc.xml.db" in voice
  2. Move all you mp3 files to that folder
helloworld1 commented 9 years ago

Comment #5 originally posted by helloworld1 on 2015-01-09T23:39:28.000Z:

I also need to change the path in the deck to point to that folder as well, don't I?

Additionally, right now the audio tag for each card is

helloworld1 commented 9 years ago

Comment #6 originally posted by helloworld1 on 2015-01-09T23:51:57.000Z:

a few things I'd like to ask about this issue that may be important in my case:

♦ There are two different areas to see where the audio path is and to edit it:

  1. misc>DB default settings>set user audio location
  2. Long-press databaseName.db, then choose settings>set user audio location. Now, I'm not sure if that is just two different ways to get to the same area of the app, but it looks like it's not the same. I'm assuming I need to use the path from the database in question.

♦ I also need to change the path in the deck to point to that folder as well, don't I? For example, the default path for the "set user audio location" on my phone is /storage/emulated/0/anymemo/voice/ Do I need to add my database name to the end of it as well? If so, it doesn't seem to work.

♦ Additionally, right now the audio tag for each card is

helloworld1 commented 9 years ago

Comment #7 originally posted by helloworld1 on 2015-01-09T23:56:00.000Z:

I should also mention that I needed to create a folder and name it "voice." It wasn't a folder in there by default.

helloworld1 commented 9 years ago

Comment #8 originally posted by helloworld1 on 2015-01-10T00:01:32.000Z:

For your questions.

  1. Set user audio location is setting the base path. In most cases, you should keep it as default as /storage/emulated/0/anymemo/voice/
  2. The DB default setting won't affect your current db settings, it is the default settings for the newly created db. So don't use that.
  3. If you don't have the voice folder there, you can create it.

If you have trouble figuring out the correct path. The easiest way is adding a new audio using AnyMemo itself. When you edit a card in preview/edit mode, press menu key and you can add a new audio. Record it and you will see where it is placed in anymemo/voice/youdb.db/q1-1.amr

helloworld1 commented 9 years ago

Comment #9 originally posted by helloworld1 on 2015-01-10T05:41:18.000Z:

Ha, success! It works now, and I thank you for your help. However, I'd like to point out a couple of things that I discovered on my own, and that other newcomers may find quite useful:

  1. Other programs such as "Anki" and "Repetitions" automatically play attached audio when the answer is revealed. Anymemo doesn't quite do that. In order to hear any corresponding audio, you first tap the "show answer" section for the answer, then tap it again to hear its audio. In my experience no audio file will play automatically.
  2. Anymemo doesn't like punctuation in file names...at all. Not even points. This was most likely the reason why I had issues. A file name such as "1.file.mp3" would not play for me, nor would a name like "1_file.mp3." Taking a shot in total darkness, I changed one of the names to omit any characters other than numbers or letters ("1file.mp3") and it worked like a charm. It was just dumb luck that I taped the answer a second time so the audio would play.