generated from obsidianmd/obsidian-sample-plugin
-
Notifications
You must be signed in to change notification settings - Fork 14
Multiple feature implementation #40
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
pyarmak
wants to merge
29
commits into
joethei:master
Choose a base branch
from
pyarmak:worklet
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
29 commits
Select commit
Hold shift + click to select a range
4f0afcc
Enable OpenAI service
pyarmak 140fa68
Enable OpenAI service settings
pyarmak f59c16b
v0.5.5
pyarmak 3290240
Small build fixes
pyarmak 43509b8
remove accidental commit of manifest
pyarmak 610485d
Put the manifest back where it belongs
pyarmak 9eb4024
Change to rollup from esbuild for worklet support
pyarmak 278ae13
Audio worklet working with OpenAI service
pyarmak 56d9450
Dynamically include soundtouch-worklet at build time from node_modules
pyarmak 9124d3a
Remove unused esbuild config
pyarmak 48dc258
Add banner and suppress warnings
pyarmak 5eee0ba
Speed up build with esbuild
pyarmak c3c1e90
Remove circular dependency
pyarmak 5aad919
WIP refactoring out AudioPlayer
pyarmak 2e298e9
Allow seeking SpeechSynthesis
pyarmak 836d08b
Controls working
pyarmak c5237c8
Add Speaking indicator to statusbar
pyarmak aafa9f8
Update settings UI
pyarmak 57091b0
Added RegExp settings
pyarmak a2467f5
SpeechSynthesis statusbar bugfixes
pyarmak 5938d93
Update rollup dev config
pyarmak c0838ba
OpenAI statusbar bugfixes
pyarmak eb0f8fa
Azure statusbar bugfixes
pyarmak a8a2b95
ES6 compatibility and language fixes
pyarmak c72d713
Moved seekbar styles to styles.css
pyarmak a0a98fc
Added styles.css to publish workflow
pyarmak d3a7358
Change pause icon
pyarmak 05d62be
Fix controls on markdownview
pyarmak 99482b0
Enable plugin, excluding SpeechSythesis service, on Android
pyarmak File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,10 @@ | ||
| { | ||
| "id": "obsidian-tts", | ||
| "name": "Text to Speech", | ||
| "version": "0.5.4", | ||
| "minAppVersion": "1.4.0", | ||
| "description": "Hear your notes.", | ||
| "author": "Johannes Theiner", | ||
| "authorUrl": "https://github.com/joethei", | ||
| "isDesktopOnly": false | ||
| } | ||
| { | ||
| "id": "obsidian-tts", | ||
| "name": "Text to Speech", | ||
| "version": "0.5.5", | ||
| "minAppVersion": "1.4.0", | ||
| "description": "Hear your notes.", | ||
| "author": "Johannes Theiner", | ||
| "authorUrl": "https://github.com/joethei", | ||
| "isDesktopOnly": false | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,37 +1,51 @@ | ||
| { | ||
| "name": "obsidian-tts", | ||
| "version": "0.5.3", | ||
| "version": "0.5.5", | ||
| "description": "Text to speech for Obsidian. Hear your notes.", | ||
| "main": "main.js", | ||
| "scripts": { | ||
| "dev": "node esbuild.config.mjs", | ||
| "build": "node esbuild.config.mjs production", | ||
| "dev": "rollup --config rollup.config.dev.mjs -w", | ||
| "build": "rollup --config rollup.config.build.mjs", | ||
| "lint": "eslint . --ext .ts", | ||
| "docs": "typedoc" | ||
| }, | ||
| "keywords": [], | ||
| "author": "joethei", | ||
| "license": "GPL-3.0", | ||
| "dependencies": { | ||
| "@cospired/i18n-iso-languages": "^3.1.1", | ||
| "@cospired/i18n-iso-languages": "^4.2.0", | ||
| "@soundtouchjs/audio-worklet": "^0.1.17", | ||
| "@types/node": "^16.11.6", | ||
| "@vanakat/plugin-api": "0.1.0", | ||
| "builtin-modules": "^3.2.0", | ||
| "microsoft-cognitiveservices-speech-sdk": "^1.40.0", | ||
| "obsidian": "1.4.11", | ||
| "tslib": "2.3.1", | ||
| "typescript": "4.4.4", | ||
| "regenerator-runtime": "^0.14.1", | ||
| "soundtouchjs": "^0.1.30", | ||
| "tinyld": "1.2.3", | ||
| "@vanakat/plugin-api": "0.1.0" | ||
| "tslib": "2.3.1", | ||
| "typescript": "4.4.4" | ||
| }, | ||
| "devDependencies": { | ||
| "@colingm/rollup-plugin-web-worker-loader": "^1.6.1", | ||
| "@microsoft/tsdoc": "0.14.1", | ||
| "@rollup/plugin-commonjs": "^28.0.0", | ||
| "@rollup/plugin-json": "^6.1.0", | ||
| "@rollup/plugin-node-resolve": "^15.3.0", | ||
| "@typescript-eslint/eslint-plugin": "^4.33.0", | ||
| "@typescript-eslint/parser": "^4.33.0", | ||
| "esbuild": "0.13.12", | ||
| "eslint": "7.32.0", | ||
| "@microsoft/tsdoc": "0.14.1", | ||
| "eslint-plugin-tsdoc": "0.2.16", | ||
| "rollup": "^4.24.0", | ||
| "rollup-plugin-copy": "^3.5.0", | ||
| "rollup-plugin-delete": "^2.1.0", | ||
| "rollup-plugin-esbuild": "^6.1.1", | ||
| "typedoc": "0.22.18" | ||
| }, | ||
| "overrides": { | ||
| "obsidian" : "$obsidian" | ||
| "obsidian": "$obsidian", | ||
| "@colingm/rollup-plugin-web-worker-loader": { | ||
| "rollup": "$rollup" | ||
| } | ||
| } | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| import { nodeResolve } from '@rollup/plugin-node-resolve'; | ||
| import commonjs from '@rollup/plugin-commonjs'; | ||
| import json from '@rollup/plugin-json'; | ||
| import webWorkerLoader from '@colingm/rollup-plugin-web-worker-loader'; | ||
| import del from 'rollup-plugin-delete'; | ||
| import copy from 'rollup-plugin-copy'; | ||
| import esbuild from 'rollup-plugin-esbuild' | ||
|
|
||
| const banner = | ||
| `/* | ||
| THIS IS A GENERATED/BUNDLED FILE CREATED USING ROLLUP | ||
| If you want to view the source, please visit the github repository of this plugin | ||
| https://github.com/joethei/obsidian-tts | ||
| */ | ||
| `; | ||
|
|
||
| export default { | ||
| input: 'src/main.ts', | ||
| output: { | ||
| dir: '.', | ||
| banner: banner, | ||
| sourcemap: 'inline', | ||
| format: 'cjs', | ||
| exports: 'default' | ||
| }, | ||
| external: ['obsidian', 'electron'], | ||
| plugins: [ | ||
| nodeResolve({browser: true}), | ||
| commonjs(), | ||
| esbuild({ target: 'es2015', minify: true }), | ||
| json(), | ||
| webWorkerLoader({ targetPlatform: 'browser' }), | ||
| copy({ | ||
| targets: [{ | ||
| src: 'node_modules/@soundtouchjs/audio-worklet/dist/soundtouch-worklet.js', | ||
| dest: 'src' | ||
| }], | ||
| hook: 'buildStart' | ||
| }), | ||
| del({ | ||
| targets: 'src/soundtouch-worklet.js', | ||
| hook: 'buildEnd' | ||
| }) | ||
| ], | ||
| onwarn: function(warning, warner) { | ||
| if (warning.id && /node_modules/.test(warning.id)) return; | ||
| if (warning.ids && warning.ids.every((id) => /node_modules/.test(id))) | ||
| return; | ||
|
|
||
| warner(warning); | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,45 @@ | ||
| import {nodeResolve} from '@rollup/plugin-node-resolve'; | ||
| import json from '@rollup/plugin-json'; | ||
| import commonjs from '@rollup/plugin-commonjs'; | ||
| import webWorkerLoader from '@colingm/rollup-plugin-web-worker-loader'; | ||
| import del from 'rollup-plugin-delete'; | ||
| import copy from 'rollup-plugin-copy'; | ||
| import esbuild from 'rollup-plugin-esbuild' | ||
|
|
||
| export default { | ||
| input: 'src/main.ts', | ||
| output: { | ||
| dir: './dist/obsidian-tts', | ||
| sourcemap: 'inline', | ||
| format: 'cjs', | ||
| exports: 'default' | ||
| }, | ||
| external: ['obsidian', 'electron'], | ||
| plugins: [ | ||
| nodeResolve({browser: true}), | ||
| commonjs(), | ||
| esbuild({ target: 'es2015', minify: false }), | ||
| json(), | ||
| webWorkerLoader({ targetPlatform: 'browser' }), | ||
| copy({ | ||
| targets: [{ | ||
| src: 'node_modules/@soundtouchjs/audio-worklet/dist/soundtouch-worklet.js', | ||
| dest: 'src' | ||
| }, | ||
| { src: ['manifest.json'], dest: './dist/obsidian-tts' } | ||
| ], | ||
| hook: 'buildStart' | ||
| }), | ||
| del({ | ||
| targets: 'src/soundtouch-worklet.js', | ||
| hook: 'buildEnd' | ||
| }) | ||
| ], | ||
| onwarn: function(warning, warner) { | ||
| if (warning.id && /node_modules/.test(warning.id)) return; | ||
| if (warning.ids && warning.ids.every((id) => /node_modules/.test(id))) | ||
| return; | ||
|
|
||
| warner(warning); | ||
| } | ||
| }; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.