Results 1 to 5 of 5

Thread: .wav + database

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    2

    Question .wav + database

    Hello,
    I have a folder with some .wav files and they all are named by numbers(10 digits). Then I have a database file with some info and one of the fileds of the database is called contacts and all are named with a number(10 digits).
    How can I merge the .wav files to the database but also have each number match. Ex. If I have a .wav file called 1234567890 I would like to merge that file in the same line where contact: 1234567890 is. Any help would be apreciated.

    note:this is for my work place and also for my knowledge. =)

    Thanks!

  2. #2
    PowerPoster
    Join Date
    Feb 2002
    Location
    Canada, Toronto
    Posts
    5,803

    Re: .wav + database

    If the wave file name is named the same as the number, then just read the record from the database, add ".wav" to the number, and then play the file (when the user clicks on play).

    You don't need to import the file into the database, if that's what you are thinking when you say "merge".

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2007
    Posts
    2

    Re: .wav + database

    Quote Originally Posted by CVMichael
    If the wave file name is named the same as the number, then just read the record from the database, add ".wav" to the number, and then play the file (when the user clicks on play).

    You don't need to import the file into the database, if that's what you are thinking when you say "merge".

    I have a database file with some contacts info and we go by their phone number. I have a folder with voice massages wich our named by their number. How can I take those .wav files and import them into the databse.

    field contact=1425 field wave=1425
    field contact=2345 field wave=2345

    I just don't want to look for the contact on the database and then open the folder and look for the wave file that matches that contact. I would like to have them all together.

  4. #4
    Member
    Join Date
    Nov 2003
    Location
    Cambs, UK
    Posts
    55

    Re: .wav + database

    If by 'import' you mean 'display a link to on the form', it's easiest to do what CVMichael said... take the field contact, and generate a file link to the path to the folder with the contact's number and ".wav" added to the end..

  5. #5
    PowerPoster
    Join Date
    Feb 2006
    Location
    East of NYC, USA
    Posts
    5,691

    Re: .wav + database

    If you mean actually save the entire .wav file in the database itself, search the forum for GetChunk.
    The most difficult part of developing a program is understanding the problem.
    The second most difficult part is deciding how you're going to solve the problem.
    Actually writing the program (translating your solution into some computer language) is the easiest part.

    Please indent your code and use [HIGHLIGHT="VB"] [/HIGHLIGHT] tags around it to make it easier to read.

    Please Help Us To Save Ana

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width