@capacitor-community/text-to-speech
Advanced tools
Comparing version 5.1.0 to 6.0.0
@@ -105,3 +105,3 @@ { | ||
], | ||
"slug": "addlisteneronrangestart" | ||
"slug": "addlisteneronrangestart-" | ||
} | ||
@@ -108,0 +108,0 @@ ], |
import { registerPlugin } from '@capacitor/core'; | ||
const TextToSpeech = registerPlugin('TextToSpeech', { | ||
web: () => import('./web').then(m => new m.TextToSpeechWeb()), | ||
web: () => import('./web').then((m) => new m.TextToSpeechWeb()), | ||
}); | ||
@@ -5,0 +5,0 @@ // Warm up |
@@ -38,3 +38,3 @@ import { WebPlugin } from '@capacitor/core'; | ||
const voices = this.getSpeechSynthesisVoices(); | ||
const languages = voices.map(voice => voice.lang); | ||
const languages = voices.map((voice) => voice.lang); | ||
const filteredLanguages = languages.filter((v, i, a) => a.indexOf(v) == i); | ||
@@ -41,0 +41,0 @@ return { languages: filteredLanguages }; |
'use strict'; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
var core = require('@capacitor/core'); | ||
@@ -20,3 +18,3 @@ | ||
const TextToSpeech = core.registerPlugin('TextToSpeech', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.TextToSpeechWeb()), | ||
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.TextToSpeechWeb()), | ||
}); | ||
@@ -60,3 +58,3 @@ | ||
const voices = this.getSpeechSynthesisVoices(); | ||
const languages = voices.map(voice => voice.lang); | ||
const languages = voices.map((voice) => voice.lang); | ||
const filteredLanguages = languages.filter((v, i, a) => a.indexOf(v) == i); | ||
@@ -63,0 +61,0 @@ return { languages: filteredLanguages }; |
@@ -17,3 +17,3 @@ var capacitorTextToSpeech = (function (exports, core) { | ||
const TextToSpeech = core.registerPlugin('TextToSpeech', { | ||
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.TextToSpeechWeb()), | ||
web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.TextToSpeechWeb()), | ||
}); | ||
@@ -57,3 +57,3 @@ | ||
const voices = this.getSpeechSynthesisVoices(); | ||
const languages = voices.map(voice => voice.lang); | ||
const languages = voices.map((voice) => voice.lang); | ||
const filteredLanguages = languages.filter((v, i, a) => a.indexOf(v) == i); | ||
@@ -120,4 +120,2 @@ return { languages: filteredLanguages }; | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
return exports; | ||
@@ -124,0 +122,0 @@ |
{ | ||
"name": "@capacitor-community/text-to-speech", | ||
"version": "5.1.0", | ||
"version": "6.0.0", | ||
"description": "Capacitor plugin for synthesizing speech from text.", | ||
@@ -17,6 +17,6 @@ "main": "dist/plugin.cjs.js", | ||
"eslint": "eslint . --ext ts", | ||
"prettier": "prettier \"**/*.{css,html,ts,js,java}\"", | ||
"prettier": "prettier \"**/*.{css,html,ts,js,java}\" --plugin=prettier-plugin-java", | ||
"swiftlint": "node-swiftlint", | ||
"docgen": "docgen --api TextToSpeechPlugin --output-readme README.md --output-json dist/docs.json", | ||
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.js", | ||
"build": "npm run clean && npm run docgen && tsc && rollup -c rollup.config.mjs", | ||
"clean": "rimraf ./dist", | ||
@@ -30,21 +30,21 @@ "watch": "tsc --watch", | ||
"devDependencies": { | ||
"@capacitor/android": "6.0.0", | ||
"@capacitor/cli": "6.0.0", | ||
"@capacitor/core": "6.0.0", | ||
"@capacitor/docgen": "0.2.0", | ||
"@capacitor/ios": "6.0.0", | ||
"@ionic/eslint-config": "^0.4.0", | ||
"@ionic/prettier-config": "1.0.1", | ||
"@ionic/swiftlint-config": "1.1.2", | ||
"eslint": "^8.57.0", | ||
"prettier": "2.3.2", | ||
"prettier-plugin-java": "1.0.2", | ||
"rimraf": "3.0.2", | ||
"rollup": "2.77.2", | ||
"@capacitor/android": "7.0.0", | ||
"@capacitor/cli": "7.0.0", | ||
"@capacitor/core": "7.0.0", | ||
"@capacitor/docgen": "0.3.0", | ||
"@capacitor/ios": "7.0.0", | ||
"@ionic/eslint-config": "0.4.0", | ||
"@ionic/prettier-config": "4.0.0", | ||
"@ionic/swiftlint-config": "2.0.0", | ||
"eslint": "8.57.0", | ||
"prettier": "3.4.2", | ||
"prettier-plugin-java": "2.6.6", | ||
"rimraf": "6.0.1", | ||
"rollup": "4.30.1", | ||
"standard-version": "9.5.0", | ||
"swiftlint": "1.0.1", | ||
"swiftlint": "2.0.0", | ||
"typescript": "4.1.5" | ||
}, | ||
"peerDependencies": { | ||
"@capacitor/core": "^6.0.0" | ||
"@capacitor/core": ">=7.0.0" | ||
}, | ||
@@ -51,0 +51,0 @@ "files": [ |
@@ -9,3 +9,3 @@ <p align="center"><br><img src="https://user-images.githubusercontent.com/236501/85893648-1c92e880-b7a8-11ea-926d-95355b8175c7.png" width="128" height="128" /></p> | ||
<p align="center"> | ||
<img src="https://img.shields.io/maintenance/yes/2024?style=flat-square" /> | ||
<img src="https://img.shields.io/maintenance/yes/2025?style=flat-square" /> | ||
<a href="https://github.com/capacitor-community/text-to-speech/actions?query=workflow%3A%22CI%22"><img src="https://img.shields.io/github/actions/workflow/status/capacitor-community/text-to-speech/ci.yml?branch=master&style=flat-square" /></a> | ||
@@ -86,3 +86,3 @@ <a href="https://www.npmjs.com/package/@capacitor-community/text-to-speech"><img src="https://img.shields.io/npm/l/@capacitor-community/text-to-speech?style=flat-square" /></a> | ||
* [`openInstall()`](#openinstall) | ||
* [`addListener('onRangeStart', ...)`](#addlisteneronrangestart) | ||
* [`addListener('onRangeStart', ...)`](#addlisteneronrangestart-) | ||
* [Interfaces](#interfaces) | ||
@@ -89,0 +89,0 @@ * [Enums](#enums) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
90471
1159