# Can ruby record sound and play it directly from webpage?

**URL:** <https://www.ruby-forum.com/t/can-ruby-record-sound-and-play-it-directly-from-webpage/49432>\
**Category:** Ruby\
**Created:** [December 4, 2005, 2:07pm UTC](https://www.ruby-forum.com/t/can-ruby-record-sound-and-play-it-directly-from-webpage/49432 "2005-12-04T14:07:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sddlzz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bc79bd/32.png) [@sddlzz](https://www.ruby-forum.com/u/sddlzz)\
**Post date:** [December 4, 2005, 2:07pm UTC](https://www.ruby-forum.com/t/can-ruby-record-sound-and-play-it-directly-from-webpage/49432/1 "2005-12-04T14:07:39Z")

</div>

Can ruby record sound and play it directly from webpage?  
I dont know how ruby can do it?  
Any one can tell me ruby can do it?

---

<div class="post-metadata">

**Author:** ![sddlzz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bc79bd/32.png) [@sddlzz](https://www.ruby-forum.com/u/sddlzz)\
**Post date:** [December 4, 2005, 2:36pm UTC](https://www.ruby-forum.com/t/can-ruby-record-sound-and-play-it-directly-from-webpage/49432/2 "2005-12-04T14:36:17Z")

</div>

No.

More correctly: depends what you mean. Ruby is just a programming  
language. There is no current setup for Ruby to run like Java Applets  
(AFAIK) and actually execute an application in the web browser, which  
is fundamentally different than the way most webpages work. (With  
javascript being the weirdo between the two worlds). That’s the only  
way a webpage is going to be able to “record sound”. Otherwise,  
webpages just show information and handle formatting. All A/V stuff  
within a webbrowser is just a trick.

You’d need a Java Applet. But, if you _really_ wanted it to be in Ruby,  
you could perhaps compile from Ruby to Java and with a little salt, hot  
sauce, and love turn it into an applet.

-hampton catlin.

---

<div class="post-metadata">

**Author:** ![sddlzz](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/s/bc79bd/32.png) [@sddlzz](https://www.ruby-forum.com/u/sddlzz)\
**Post date:** [December 4, 2005, 3:57pm UTC](https://www.ruby-forum.com/t/can-ruby-record-sound-and-play-it-directly-from-webpage/49432/3 "2005-12-04T15:57:57Z")

</div>

Hampton wrote:

> …
> 
> You’d need a Java Applet.

Or Flash. Same issues, though there are tools for using Ruby to create  
Flash objects.

James

–

[http://www.ruby-doc.org](http://www.ruby-doc.org) - Ruby Help & Documentation  
[Ruby Code & Style](http://www.artima.com/rubycs/) - Ruby Code & Style: Writers wanted  
[http://www.rubystuff.com](http://www.rubystuff.com) - The Ruby Store for Ruby Stuff  
[http://www.jamesbritt.com](http://www.jamesbritt.com) - Playing with Better Toys  
[http://www.30secondrule.com](http://www.30secondrule.com) - Building Better Tools
