Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 11 of 11
  1. #1
    New Coder
    Join Date
    Jan 2008
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    how to record the voice in php

    hi,

    i am doing online exam site.in my site i have to record the voice.i dont have any idea regarding this.i dont know,how to record the voice and hear the voice.can anyone help me?

    thanx in advance.

  • #2
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Never heard of anything like this before, so I'm just going to base this off my language knowledge instead.
    PHP is a static language, it is preprocessed by the server and sent to the client in html format. With this in mind, any interaction between a php page and the client will result in no change to the server until it has been received via sometype of put method (such as a form).
    A better option would be to use a java applet to preform these for you. Java can be used to capture voice from user input and saved into a database or some other media file, and is loaded statically into a users page. Much better solution. Off hand though, I don't know if anyone has written a java application for this specific task, and if they haven't you will probably need to overwrite the standard input or define a new input for a users microphone. Not too pleasant sounding

    Short end of the stick, this is not a task that PHP is capable of preforming (well... maybe a CLI could do it, but I still doubt that, and it would be like 1000x harder in php than Java anyway).
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #3
    New Coder
    Join Date
    Jan 2008
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    so there is no possible for doing this task in php?because am a newbie to php

  • #4
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Not to the best of my knowledge, and as I mentioned I'm basing this off of the behaviour of PHP not off of experience in this field. It just doesn't seem that this is a task that PHP is capable of performing.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #5
    Regular Coder the-dream's Avatar
    Join Date
    Mar 2007
    Location
    Northamptonshire, UK
    Posts
    477
    Thanks
    8
    Thanked 4 Times in 4 Posts
    Flash is your best option, record it in flash and send it from flash to php etc...

  • #6
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    I was going to suggest flash as well, but I was not certain if it was capable of preforming the recording or not.
    Now I know, thanx mate I'll keep that in mind too
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)

  • #7
    Regular Coder the-dream's Avatar
    Join Date
    Mar 2007
    Location
    Northamptonshire, UK
    Posts
    477
    Thanks
    8
    Thanked 4 Times in 4 Posts
    It's quite complicated, but can be done. I think there is some articles on http://tutorialized.com/ take a look!

  • #8
    New Coder
    Join Date
    Jan 2008
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts

    online streaming

    hi,

    clearly i tell my requirement.am doing online exam site in php.in this site i have to add the voice.the recorded voice is given by client.i just upload that voice in my site.online streaming it seems.i dont have any idea about online streaming.can anyone help me.

  • #9
    Regular Coder
    Join Date
    Apr 2006
    Posts
    231
    Thanks
    9
    Thanked 1 Time in 1 Post
    CHange your arguments guys.

    I don't get it...

    You have a php page, and you have a recorded audio file. You want to emplement the audio file into the page?

  • #10
    Senior Coder
    Join Date
    Jan 2007
    Posts
    1,648
    Thanks
    1
    Thanked 58 Times in 54 Posts
    Quote Originally Posted by Erindesign View Post
    You have a php page, and you have a recorded audio file. You want to emplement the audio file into the page?
    I think you might want to re-read the original question.

  • #11
    New Coder
    Join Date
    Jan 2008
    Posts
    26
    Thanks
    0
    Thanked 0 Times in 0 Posts
    yes,i have php page and i have recorded voice.right.


  •  

    Posting Permissions

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