# cordova-plugin-system-sound-services

> Play system sound services

Latest version **1.2.1** (published 2018-01-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install cordova-plugin-system-sound-services
pnpm add cordova-plugin-system-sound-services
yarn add cordova-plugin-system-sound-services
bun add cordova-plugin-system-sound-services
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.2.1 |
| Published | 2018-01-05 |
| First published | 2017-05-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Andrew Tan |
| Maintainers | momoterraw |
| Keywords | ecosystem:cordova, cordova-ios |

## Links

- npm: https://www.npmjs.com/package/cordova-plugin-system-sound-services
- Repository: https://github.com/Switch168/cordova-plugin-system-sound-services
- Homepage: https://github.com/Switch168/cordova-plugin-system-sound-services#readme
- Issues: https://github.com/Switch168/cordova-plugin-system-sound-services/issues
- npm.io page: https://npm.io/package/cordova-plugin-system-sound-services

## Recent versions

- 1.2.1 (latest) — 2018-01-05
- 1.2.0 — 2017-12-12
- 1.0.2 — 2017-05-12
- 1.0.1 — 2017-05-05
- 1.0.0 — 2017-05-05

## README

# Cordova System Sound Plugin


This is a simple plugin to play sound for iOS. The main motivation for creating this plugin is to play DTMF feedback sound while using https://github.com/BasqueVoIPMafia/cordova-plugin-iosrtc. The dtmfSender interface in cordova-plugin-iosrtc does not give the users audio feedback. Other plugins out there does not take consideration of a voip call in session and end up taking over the audio. 

## Installation

In your root Cordova project

```bash
$ cordova plugin add cordova-plugin-system-sound-services
```

Make sure you have your-sound-file.wav imported to the ios target as a part of your build process so it exists when you run build ios command. 

## Usage

Somewhere after/before running your DTMF function 

```
window.SystemSound.playSound('your-sound-file.wav');
```

If you sound is not located in the root of the xcode project

```
window.SystemSound.playSound('your-sound-file.wav', 'path/to/folder/with/sounds');
```

---
_Source: https://npm.io/package/cordova-plugin-system-sound-services · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
