{"id":16431404,"url":"https://github.com/stephencelis/sc_listener","last_synced_at":"2025-03-16T17:35:23.513Z","repository":{"id":513478,"uuid":"141322","full_name":"stephencelis/sc_listener","owner":"stephencelis","description":"A simple class for listening to microphone levels, suitable for the iPhone.","archived":false,"fork":false,"pushed_at":"2011-03-04T23:08:25.000Z","size":132,"stargazers_count":131,"open_issues_count":3,"forks_count":30,"subscribers_count":13,"default_branch":"master","last_synced_at":"2024-10-12T08:30:23.312Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"http://stephencelis.com/2009/03/02/now-i-just-need-an-audience.html","language":"Objective-C","has_issues":false,"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/stephencelis.png","metadata":{"files":{"readme":"README.markdown","changelog":"CHANGELOG.markdown","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2009-03-02T18:50:44.000Z","updated_at":"2024-01-18T00:44:09.000Z","dependencies_parsed_at":"2022-07-07T18:21:01.570Z","dependency_job_id":null,"html_url":"https://github.com/stephencelis/sc_listener","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fsc_listener","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fsc_listener/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fsc_listener/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stephencelis%2Fsc_listener/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stephencelis","download_url":"https://codeload.github.com/stephencelis/sc_listener/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221666413,"owners_count":16860415,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":[],"created_at":"2024-10-11T08:30:03.158Z","updated_at":"2024-10-27T10:59:56.733Z","avatar_url":"https://github.com/stephencelis.png","language":"Objective-C","funding_links":[],"categories":[],"sub_categories":[],"readme":"Please Note! This Library Is Deprecated!\n----------------------------------------\n\nPlease don't use this library anymore. It was a good run, though. We had some\nlaughs and it was easy for the iPhone to hear them.\n\nThis code has been deprecated in favor of Apple's built-in solution, available\nsince iOS 3.0:\n[`AVAudioRecorder`](http://developer.apple.com/library/ios/#documentation/AVFoundation/Reference/AVAudioRecorder_ClassReference/Reference/Reference.html).\n\nMobile Orchard published\n[a nice tutorial](http://mobileorchard.com/tutorial-detecting-when-a-user-blows-into-the-mic/).\n\n\nSCListener 1.0.1\n================\n\nA simple class for listening to microphone levels, suitable for the iPhone.\n\n* [Intro](http://stephencelis.com/2009/03/02/now-i-just-need-an-audience.html)\n* [GitHub](http://github.com/stephencelis/sc_listener)\n\n\nUsage\n-----\n\n    #import \"SCListener.h\" // Remember to link to AudioToolbox.framework.\n\n    // Start listening.\n    [[SCListener sharedListener] listen];\n\n    // Retrieve the average power.\n    [[SCListener sharedListener] averagePower];\n\n    // Retrieve the peak power.\n    [[SCListener sharedListener] peakPower];\n\n    // Hmm...we're using this guy a lot...\n    SCListener *listener = [SCListener sharedListener];\n\n    // We can temporarily stop returning levels\n    [listener pause];\n    [listener listen]; // Quick.\n\n    // Or free up resources when we're not listening for awhile.\n    [listener stop];\n    [listener listen]; // Slower.\n\n    // Advanced!:\n    //\n    // If you're using the average and the peak, fetch both at once.\n    if (![listener isListening]) // If listener has paused or stopped...\n      return;                    // ...bail.\n\n    AudioQueueLevelMeterState *levels = [listener levels];\n    Float32 peak = levels[0].mPeakPower;\n    Float32 average = levels[0].mAveragePower;\n\n\nLicense\n-------\n\n(c) 2009-* Stephen Celis, \u003cstephen@stephencelis.com\u003e.\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephencelis%2Fsc_listener","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstephencelis%2Fsc_listener","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstephencelis%2Fsc_listener/lists"}