yoshistabber / anymemo

Automatically exported from code.google.com/p/anymemo
GNU General Public License v2.0
0 stars 0 forks source link

Audio not working with imported cards #344

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

Original issue reported on code.google.com by mpron...@gmail.com on 9 Jan 2015 at 7:17

GoogleCodeExporter commented 8 years ago
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.

Original comment by mrlhwlib...@gmail.com on 9 Jan 2015 at 7:33

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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

Original comment by mpron...@gmail.com on 9 Jan 2015 at 9:35

GoogleCodeExporter commented 8 years ago
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

Original comment by mrlhwlib...@gmail.com on 9 Jan 2015 at 10:27

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
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 <audio src="xyz.mp3">
Does the tag need to say the full direct path as well?

Original comment by mpron...@gmail.com on 9 Jan 2015 at 11:51

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

Original comment by mpron...@gmail.com on 9 Jan 2015 at 11:56

GoogleCodeExporter commented 8 years ago
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

Original comment by mrlhwlib...@gmail.com on 10 Jan 2015 at 12:01

GoogleCodeExporter commented 8 years ago
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.

Original comment by mpron...@gmail.com on 10 Jan 2015 at 5:41