Voice Database

Theera

Expert
Licensed User
Longtime User
Hi all,
I want to design the Voice Database to keep mp3 files for Thai words.But I don't know that I start it. I need to use text to speech. If it's possible,I would like Text database better than Sql 's database.
 
Last edited:

Theera

Expert
Licensed User
Longtime User
Hi all,
Please give me the demo about using KeyValueStore for Voice Database.
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
Do you want to store files in the database? You can use PutInputStream to store files.

Hi all,
I tried to understand KeyValueStore,but I don't understand it.Assume I have 3 mp3 files in File.DirAssets.How to do continue for store these files?
 
Upvote 0

susu

Well-Known Member
Licensed User
Longtime User
Why don't you just store the path to your mp3 files? It will be too much faster than store the whole file.
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
How to succeed ?

Hi all,
I have still problem of using KeyValueStore about mp3 file. I have attached it below.
 
Last edited:
Upvote 0

Theera

Expert
Licensed User
Longtime User
I'm poor of knowledge programming

Hi Erel,
In my target is Thai TTS,I have no database for matching between Thai 's word and Thai's sounded. I selected to tried using KeyValueStore. I'm poor of knowledge programming. I test to run Thai's sounded from Thai's word. If it work,I think it could help sick man ,or man who disable speak. My grandchild still can't speak for 12 years. Please to help me.:sign0013:
 
Upvote 0

Erel

B4X founder
Staff member
Licensed User
Longtime User
I think that it will be easier to save the file name in the store instead of the actual data.

If you do want to embed all the data in the store then you need to do something like:
B4X:
Dim out As OutputStream = File.OpenOutput(File.DirDefaultExternal, "temp", False)
File.Copy2(kvs.GetInputStream("กฎหมายระหว่างประเท"), out) 'copy the saved data to a temporary file.
out.Close
MediaPlayer1.Initialize
MediaPlayer1.Load(File.DirDefaultExternal, "temp")
 
Upvote 0

Theera

Expert
Licensed User
Longtime User
Why do I not follow as your guide?

Hi Erel and SuSu,
Thank you very much,In the really,I need to do as following your guide,but my background programming is not so good. I have never to learn programming. I study from others' coding.:eek:
 
Upvote 0
Top