{"_id":"react-native-audio-speaker","_rev":"39-4ba2be8160b07b99666478c5c180251a","name":"react-native-audio-speaker","dist-tags":{"latest":"1.1.6"},"versions":{"1.1.2":{"name":"react-native-audio-speaker","version":"1.1.2","keywords":["react-native","ios","audio","speaker"],"author":{"name":"Minh Toan"},"license":"MIT","_id":"react-native-audio-speaker@1.1.2","maintainers":[{"name":"mtoan","email":"mtoan2610@gmail.com"}],"homepage":"https://github.com/NgoMinhToan/react-native-audio-speaker","bugs":{"url":"https://github.com/NgoMinhToan/react-native-audio-speaker/issues"},"dist":{"shasum":"26e24493e3d7e459fd240ab90867dfdf49484b2c","tarball":"https://registry.npmjs.org/react-native-audio-speaker/-/react-native-audio-speaker-1.1.2.tgz","fileCount":15,"integrity":"sha512-CGxmEhxpGv2YbXZDUtyLcXcUM9+6/7wfO489kJd1Vl3Fmha+6d4PKDUygPbj/bC/lP3sHkhPCnLVLRxaWxhLMA==","signatures":[{"sig":"MEYCIQCg1BXT3TGqUs+ZWzb58VqLIsE3MD+QWSnXwvw1w0JgnwIhAKuANbAo0ANXtd9/2qThvNplHI8VNndeDNpko5pCQjC7","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":13416},"main":"lib/src/index.js","types":"./lib/src/index.d.ts","source":"src/index","gitHead":"cc5ffad605601b3dd5fbda80877a6742e620660a","scripts":{"build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"mtoan","email":"mtoan2610@gmail.com"},"repository":{"url":"git+https://github.com/NgoMinhToan/react-native-audio-speaker.git","type":"git"},"_npmVersion":"8.19.4","description":"A React Native module to toggle speaker/phone speaker for iOS and Android","directories":{},"_nodeVersion":"16.20.2","react-native":"src/index","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"peerDependencies":{"react-native":">=0.60.0"},"_npmOperationalInternal":{"tmp":"tmp/react-native-audio-speaker_1.1.2_1725959003085_0.2818962716280178","host":"s3://npm-registry-packages"},"create-react-native-library":{"type":"module-legacy","version":"0.41.1","languages":"kotlin-objc"}},"1.1.3":{"name":"react-native-audio-speaker","version":"1.1.3","keywords":["react-native","ios","audio","speaker"],"author":{"name":"Minh Toan"},"license":"MIT","_id":"react-native-audio-speaker@1.1.3","maintainers":[{"name":"mtoan","email":"mtoan2610@gmail.com"}],"homepage":"https://github.com/NgoMinhToan/react-native-audio-speaker","bugs":{"url":"https://github.com/NgoMinhToan/react-native-audio-speaker/issues"},"dist":{"shasum":"05ee252cbd2d33f6cec3f74e3061afee8cd6d1d3","tarball":"https://registry.npmjs.org/react-native-audio-speaker/-/react-native-audio-speaker-1.1.3.tgz","fileCount":19,"integrity":"sha512-EoEImcJIc4M9HO+u59AnapleMswNm/+w2evsyDzaTEH9+w7enWtPNW3p6r9tzG+m4r8FUOvKY05bwAt+PAtpQQ==","signatures":[{"sig":"MEQCIAkKG4t/bXr1TyLkefJxKvDQ0MddCEUiUnhz8IhadbJnAiBj2Z5UWdmZkmbgAfePuFYxf0ZRu7138T0kZd7+qSFRfQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":51463},"main":"lib/src/index.js","types":"./lib/src/index.d.ts","source":"src/index","gitHead":"54353a4bcdb949195829e89d1892a981d873fafe","scripts":{"build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"mtoan","email":"mtoan2610@gmail.com"},"repository":{"url":"git+https://github.com/NgoMinhToan/react-native-audio-speaker.git","type":"git"},"_npmVersion":"8.19.4","description":"A React Native module to toggle speaker/phone speaker for iOS and Android","directories":{},"_nodeVersion":"16.20.2","react-native":"src/index","_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"peerDependencies":{"react-native":">=0.60.0"},"_npmOperationalInternal":{"tmp":"tmp/react-native-audio-speaker_1.1.3_1732868093363_0.227109160736491","host":"s3://npm-registry-packages"},"create-react-native-library":{"type":"module-legacy","version":"0.41.1","languages":"kotlin-objc"}},"1.1.4":{"name":"react-native-audio-speaker","version":"1.1.4","keywords":["react-native","ios","audio","speaker"],"author":{"name":"Minh Toan"},"license":"MIT","_id":"react-native-audio-speaker@1.1.4","maintainers":[{"name":"mtoan","email":"mtoan2610@gmail.com"}],"homepage":"https://github.com/NgoMinhToan/react-native-audio-speaker","bugs":{"url":"https://github.com/NgoMinhToan/react-native-audio-speaker/issues"},"dist":{"shasum":"306667f88e04ba0d34c5300d88967231918eebcc","tarball":"https://registry.npmjs.org/react-native-audio-speaker/-/react-native-audio-speaker-1.1.4.tgz","fileCount":22,"integrity":"sha512-ZksOG8QgW+a69MtDs8x6uinPciOiTzQNe/akgQ6z/rAGiZK+bIWqQhkAr8suVrAJqkLUir/uO8AgStIWH7HDLg==","signatures":[{"sig":"MEQCIATir48wvpJbGG2XNVeHmeYy+irJrxHZTLDNEa2GTM9GAiB1zfkaIZrReniJiZACy9qgRwd+88SpfA+pi4tzTyqXaw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":55460},"main":"lib/src/index.js","types":"./lib/src/index.d.ts","source":"src/index","gitHead":"90fd9fb81cebc7513d4ccda206ad3c4f6bd395f5","scripts":{"test":"echo 'No tests yet' && true","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"mtoan","actor":{"name":"mtoan","type":"user","email":"mtoan2610@gmail.com"},"email":"mtoan2610@gmail.com"},"repository":{"url":"git+https://github.com/NgoMinhToan/react-native-audio-speaker.git","type":"git"},"_npmVersion":"10.8.2","description":"A React Native module to toggle speaker/phone speaker for iOS and Android","directories":{},"_nodeVersion":"18.20.8","react-native":"src/index","codegenConfig":{"name":"AudioSpeaker","type":"modules","android":{"javaPackageName":"com.rnaudiospeaker"},"jsSrcsDir":"./src"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"peerDependencies":{"react-native":">=0.60.0"},"_npmOperationalInternal":{"tmp":"tmp/react-native-audio-speaker_1.1.4_1750819376217_0.8235780659475982","host":"s3://npm-registry-packages-npm-production"},"create-react-native-library":{"type":"module-legacy","version":"0.41.1","languages":"kotlin-objc"}},"1.1.5":{"name":"react-native-audio-speaker","version":"1.1.5","keywords":["react-native","ios","audio","speaker"],"author":{"name":"Minh Toan"},"license":"MIT","_id":"react-native-audio-speaker@1.1.5","maintainers":[{"name":"mtoan","email":"mtoan2610@gmail.com"}],"homepage":"https://github.com/NgoMinhToan/react-native-audio-speaker","bugs":{"url":"https://github.com/NgoMinhToan/react-native-audio-speaker/issues"},"dist":{"shasum":"0624a1722869fabb86c0bc19c599c3dfcd23fa16","tarball":"https://registry.npmjs.org/react-native-audio-speaker/-/react-native-audio-speaker-1.1.5.tgz","fileCount":22,"integrity":"sha512-EHUa35tH0ScCJxv+rIBaM6uk7HkvCHMIujmp2YrUYIMAs67mh0j140InPaUW120o0Kiy4As6z0QFxxoMf8Z/DA==","signatures":[{"sig":"MEYCIQCW8vKI4oRk/TVqrCz/UT4C6Sks4DOKl7z6dnruOEqb2gIhAJj0SbCIENIsOAnhH1J3ladqO+4TggQp5qXFxX5QnoJC","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":56206},"main":"lib/src/index.js","types":"./lib/src/index.d.ts","source":"src/index","gitHead":"cdcafae6456fdedc6794735235234e68cebad208","scripts":{"test":"echo 'No tests yet' && true","build":"tsc","prepare":"npm run build"},"_npmUser":{"name":"mtoan","actor":{"name":"mtoan","type":"user","email":"mtoan2610@gmail.com"},"email":"mtoan2610@gmail.com"},"repository":{"url":"git+https://github.com/NgoMinhToan/react-native-audio-speaker.git","type":"git"},"_npmVersion":"10.8.2","description":"A React Native module to toggle speaker/phone speaker for iOS and Android","directories":{},"_nodeVersion":"18.20.8","react-native":"src/index","codegenConfig":{"name":"RNAudioSpeaker","type":"modules","android":{"javaPackageName":"com.rnaudiospeaker"},"jsSrcsDir":"./src"},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_hasShrinkwrap":false,"devDependencies":{"typescript":"^4.5.5"},"peerDependencies":{"react-native":">=0.60.0"},"_npmOperationalInternal":{"tmp":"tmp/react-native-audio-speaker_1.1.5_1750823023455_0.9191757154727846","host":"s3://npm-registry-packages-npm-production"},"create-react-native-library":{"type":"module-legacy","version":"0.41.1","languages":"kotlin-objc"}},"1.1.6":{"name":"react-native-audio-speaker","version":"1.1.6","description":"A React Native module to toggle speaker/phone speaker for iOS and Android","main":"lib/src/index.js","react-native":"src/index","source":"src/index","scripts":{"prepare":"npm run build","build":"tsc","test":"echo 'No tests yet' && true"},"keywords":["react-native","ios","audio","speaker"],"create-react-native-library":{"type":"module-legacy","languages":"kotlin-objc","version":"0.41.1"},"author":{"name":"Minh Toan"},"homepage":"https://github.com/NgoMinhToan/react-native-audio-speaker","license":"MIT","peerDependencies":{"react-native":">=0.60.0"},"devDependencies":{"typescript":"^4.5.5"},"repository":{"type":"git","url":"git+https://github.com/NgoMinhToan/react-native-audio-speaker.git"},"codegenConfig":{"name":"RNAudioSpeaker","type":"modules","jsSrcsDir":"./src","android":{"javaPackageName":"com.rnaudiospeaker"}},"publishConfig":{"registry":"https://registry.npmjs.org/"},"_id":"react-native-audio-speaker@1.1.6","gitHead":"2c2cf29653c962e7fba653940080c3b3cf577032","types":"./lib/src/index.d.ts","bugs":{"url":"https://github.com/NgoMinhToan/react-native-audio-speaker/issues"},"_nodeVersion":"18.20.8","_npmVersion":"10.8.2","dist":{"integrity":"sha512-/dGn1I/0DCxstvz4/PN41oEy0C19fJVkleer3knnx0ooFtkfpcZhS7WALsyQtp+wS616395MVQ1u3GoQnn3WfA==","shasum":"02c7dab53931f64625e6f4ecd77e5e4d49cdbdc2","tarball":"https://registry.npmjs.org/react-native-audio-speaker/-/react-native-audio-speaker-1.1.6.tgz","fileCount":24,"unpackedSize":57081,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDEmRz+Zm+JdP0OyFNx4382lgawHAa5plunbbK2WOECOgIhAPCwmbFW9FGbvmLQ12D3Ct19bqseR07U2kQ45hsoEZ9n"}]},"_npmUser":{"name":"mtoan","email":"mtoan2610@gmail.com"},"directories":{},"maintainers":[{"name":"mtoan","email":"mtoan2610@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/react-native-audio-speaker_1.1.6_1752722944738_0.3381418837086352"},"_hasShrinkwrap":false}},"time":{"created":"2024-09-06T09:35:22.506Z","modified":"2025-07-17T03:29:05.119Z","1.0.0":"2024-09-06T09:35:22.658Z","1.0.1":"2024-09-06T09:48:16.882Z","1.0.2":"2024-09-09T07:10:39.619Z","1.0.3":"2024-09-09T08:19:31.838Z","1.0.4":"2024-09-09T08:31:43.455Z","1.0.5":"2024-09-09T08:39:31.667Z","1.0.6":"2024-09-09T09:13:08.697Z","1.0.7":"2024-09-09T09:16:55.245Z","1.0.8":"2024-09-09T09:34:26.524Z","1.0.9":"2024-09-09T09:49:39.357Z","1.0.10":"2024-09-09T09:57:41.016Z","1.0.11":"2024-09-09T10:27:14.877Z","1.0.12":"2024-09-10T02:00:12.230Z","1.0.13":"2024-09-10T07:26:16.133Z","1.0.14":"2024-09-10T08:05:40.225Z","1.1.0":"2024-09-10T08:41:18.418Z","1.1.1":"2024-09-10T08:59:12.630Z","1.1.2":"2024-09-10T09:03:23.237Z","1.1.3":"2024-11-29T08:14:53.542Z","1.1.4":"2025-06-25T02:42:56.420Z","1.1.5":"2025-06-25T03:43:43.645Z","1.1.6":"2025-07-17T03:29:04.953Z"},"bugs":{"url":"https://github.com/NgoMinhToan/react-native-audio-speaker/issues"},"author":{"name":"Minh Toan"},"license":"MIT","homepage":"https://github.com/NgoMinhToan/react-native-audio-speaker","keywords":["react-native","ios","audio","speaker"],"repository":{"type":"git","url":"git+https://github.com/NgoMinhToan/react-native-audio-speaker.git"},"description":"A React Native module to toggle speaker/phone speaker for iOS and Android","maintainers":[{"name":"mtoan","email":"mtoan2610@gmail.com"}],"readme":"# react-native-audio-speaker\n\nA React Native module to toggle speaker/phone speaker for iOS and Android.\n\n## Installation\nnpm\n```bash\nnpm install react-native-audio-speaker\n\n# or\n\nyarn add react-native-audio-speaker\n```\n\n### iOS\n\nAdd the following line to your `ios/Podfile`:\n```ruby\npod 'react-native-audio-speaker', :path => '../node_modules/react-native-audio-speaker'\n\n```\n\nThen run:\n```bash\ncd ios && pod install\n```\n\n### Android\n\nNo additional steps required for Android.\n\n## Usage\n\n```javascript\nimport AudioSpeaker from 'react-native-audio-speaker';\n// Toggle speaker\nAudioSpeaker.toggleSpeaker();\n// Check if speaker is on\nAudioSpeaker.isSpeaker().then((isSpeakerOn) => {\nconsole.log('Speaker is on:', isSpeakerOn);\n});\n// Switch to speaker\nAudioSpeaker.switchToSpeaker();\n// Switch to receiver\nAudioSpeaker.switchToReceiver();\n\n```\n\n## License\n\nMIT","readmeFilename":"README.md"}