{"id":18728641,"url":"https://github.com/rubyonworld/ruby-shout","last_synced_at":"2026-06-22T02:32:01.106Z","repository":{"id":174008109,"uuid":"542164221","full_name":"RubyOnWorld/ruby-shout","owner":"RubyOnWorld","description":"If you have installed a previous version of ruby-shout you have to make shure the shout.o files aren’t there any more. Otherwise the build will fail.","archived":false,"fork":false,"pushed_at":"2022-09-28T00:05:07.000Z","size":3100,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-08-10T14:45:44.389Z","etag":null,"topics":["ruby","shout"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/RubyOnWorld.png","metadata":{"files":{"readme":"README.textile","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2022-09-27T15:43:02.000Z","updated_at":"2022-09-28T01:30:01.000Z","dependencies_parsed_at":null,"dependency_job_id":"8ed1d9f3-e999-488d-b6ed-39f2219ae612","html_url":"https://github.com/RubyOnWorld/ruby-shout","commit_stats":null,"previous_names":["rubyonworld/ruby-shout"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/RubyOnWorld/ruby-shout","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fruby-shout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fruby-shout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fruby-shout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fruby-shout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/RubyOnWorld","download_url":"https://codeload.github.com/RubyOnWorld/ruby-shout/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/RubyOnWorld%2Fruby-shout/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34632549,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-22T02:00:06.391Z","response_time":106,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ruby","shout"],"created_at":"2024-11-07T14:22:37.411Z","updated_at":"2026-06-22T02:32:01.083Z","avatar_url":"https://github.com/RubyOnWorld.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"h1. Ruby-Shout\n\nh2. Compatibility note\n\nIf you have installed a previous version of ruby-shout you have to make shure the shout.o files aren't there any more. Otherwise the build will fail.\n\nh2. Purpose\n\nruby-shout lets you send compressed audio over the network to an \"Icecast\":http://www.icecast.org/ streaming media server.\n\nh2. Requirements\n\nlibshout 2.0, available from \"icecast.org\":http://www.icecast.org/download.php. libshout 2 requires the ogg and vorbis libraries.\n\nh2. Summary of usage\n\nThis extension follows python-shout fairly closely. You make a Shout object with Shout.new, set its properties, tell it to connect, then send blocks of data, sync and repeat. Disconnect when done.\n\nh2. Usage\n\nSee example.rb. Run it like\n\n\u003cpre\u003e\u003ccode\u003e./example.rb spec/test.mp3\n\u003c/code\u003e\u003c/pre\u003e\n\nh2. Ruby 1.9 and encoding\n\nRuby 1.9 features really good encoding support: Each string has it's own explicit encoding. The default encoding for Icecast is ISO-8859-1 for station data and meta data.\n\nIn order to make ruby-shout play nice with ruby 1.9 I added a Shout#charset setter and all string accessors for station data are wrapped:\n\n* setters convert the given string to the given charset\n* and store the original string, available under #original_..., for example #original_description. This is done because converting may alter your string (characters incompatible with conversion are just swallowed). That way you are able to get your original string back (should you need it) and the getter is enabled to:\n* getters convert the value back to the original encoding, determined by the #original_... method.\n\nThe idea is: We want to guaranty that strings keep their encoding when assigning them via a Shout accessor. In case strings are not compatible with Icecasts charset we want to degrade as gracefully as possible. IMHO just dropping incompatible characters does this best (when being listed in an external YP directory these \"???br?\" things just look awful). If you want to make sure this doesn't happen you have to compare the value before and after assigning it (or just compare for example #description with #original_description).\n\nh3. Synopsis:\n\n\u003cpre\u003e\u003ccode\u003es = Shout.new\ns.charset = 'UTF-8'\ns.description = 'dikşîne MUSłϾ'\nputs s.description              # =\u003e 'dikşîne MUSłϾ'\n\ns = Shout.new\ns.charset = 'ISO-8859-1'        # this is the default\ns.description = 'dikşîne MUSłϾ'\nputs s.description              # =\u003e 'dikîne MUSłϾ'\nputs s.original_description     # =\u003e 'dikşîne MUSłϾ'\n\u003c/code\u003e\u003c/pre\u003e\n\nh3. Icecast charset config\n\nIf you use s/th else than ISO-8859-1 you should configure your icecast accordingly: In the mount section set the charset:\n\n\u003cpre\u003e\u003ccode\u003e\u003cmount\u003e\n  \u003cmount-name\u003e/your_station\u003c/mount-name\u003e\n  \u003ccharset\u003eUTF-8\u003c/charset\u003e\n  ...\n\u003c/mount\u003e\n\u003c/code\u003e\u003c/pre\u003e\n\nor (in the latest icecast builds)\n\n\u003cpre\u003e\u003ccode\u003e\u003cmount\u003e\n  \u003cmount-name\u003e/*\u003c/mount-name\u003e\n  \u003ccharset\u003eUTF-8\u003c/charset\u003e\n  ...\n\u003c/mount\u003e\n\u003c/code\u003e\u003c/pre\u003e\n\nto set UTF-8 for all mountpoints.\n\nh2. Running the spec\n\nh3. General note: use rake spec:build\n\nBefore each run you have to run the build specs first as the other specs use its output (the built gem).\n\n\u003cpre\u003e\u003ccode\u003erake spec:build \u0026\u0026 rake spec\n\u003c/code\u003e\u003c/pre\u003e\n\nh3. For the integration spec\n\nYou need to have an icecast server running. Perhaps you want to adopt the server setting quite at the top of the intergration_spec.rb\n\nh2. Todo\n\n* proper unit tests (blush) ; working on that\n\nh2. History \u0026 Credits\n\n* 2001 Jared Jenning built the initial version for libshout 1\n* 2003 Jared Jenning rebuilt ruby-shout for libshout 2 and maintained it to until 2005\n* Yauhen Kharuzhy helped with bugfixes and initial metadata support\n* 2010 \"Overlay\" (real name unknown to me) patched ruby-shout for ruby 1.9 support, Diego Elio \"Flameeyes\" Pettenò \"incorporated patch into the gentoo package\":http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-ruby/ruby-shout/files/ruby-shout-2.1%2Bruby-1.9.patch?revision=1.1\u0026view=markup. It got removed later on due to \"some issues\":http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-ruby/ruby-shout/files/ruby-shout-2.1%2Bruby-1.9.patch?view=markup.\n* 2010 Niko Dittman re-added the patch and fixed the issues. See \"Recent Changes\" for details.\n\nh2. Recent Changes\n\n* Included the \"ruby 1.9 patch\":http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-ruby/ruby-shout/files/ruby-shout-2.1%2Bruby-1.9.patch?revision=1.1\u0026view=markup although it seems to have \"some issues\":http://sources.gentoo.org/cgi-bin/viewvc.cgi/gentoo-x86/dev-ruby/ruby-shout/files/ruby-shout-2.1%2Bruby-1.9.patch?view=log. I hope to have fixed the issues with this:\n* Replaced STR2CSTR for StringValuePtr as STR2CSTR doesn't work for 1.9 any more\n* Added format = Shout::MP3 to the example as this is absolutely needed by the latest versions of libshout.\n* Added a build test which builds and installs the gem and an integration test that plays some sound on a local icecast server. Be sure to adopt the server setting before running. I mainly did that because the old version of ruby-shout didn't even compile for ruby 1.9.\n\n* Added Ruby 1.9 encoding support.\n\nh2. State\n\nI tested this version of ruby-shout to build and run on\n\n* ruby-1.8.7-p174 [x86_64] OSX 10.6\n* ruby-1.9.1-p378 [x86_64] OSX 10.6\n* ruby-1.9.2-rc1  [x86_64] OSX 10.6\n* ruby-1.9.2-p0   [x86_64] OSX 10.6\n* ruby-1.8.7-p299 [i386]   ubuntu 2.6.32\n* ruby-1.9.2-rc2  [i386]   ubuntu 2.6.32\n\nh2. License\nThis is a BSD license.\n\nCopyright (c) 2003-2005, Jared Jennings\nCopyright (c) 2010, Niko Dittmann\n\nAll rights reserved.\n\nRedistribution and use in source and binary forms, with or without\nmodification, are permitted provided that the following conditions are met:\n\n* Redistributions of source code must retain the above copyright notice, this\n  list of conditions and the following disclaimer.\n\n* Redistributions in binary form must reproduce the above copyright notice,\n  this list of conditions and the following disclaimer in the documentation\n  and/or other materials provided with the distribution.\n\n* Neither the names of the authors nor the names of contributors may\n  be used to endorse or promote products derived from this software without\n  specific prior written permission.\n\nTHIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS \"AS IS\" AND\nANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED\nWARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE\nDISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR\nANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES\n(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;\nLOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON\nANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT\n(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS\nSOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fruby-shout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frubyonworld%2Fruby-shout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frubyonworld%2Fruby-shout/lists"}