@uimaxbai/am-lyrics 1.0.0 → 1.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/AmLyrics.ts +2 -1
package/package.json
CHANGED
package/src/AmLyrics.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { html, css, LitElement } from 'lit';
|
|
|
2
2
|
import { property, state, query } from 'lit/decorators.js';
|
|
3
3
|
import { GoogleService } from './GoogleService.js';
|
|
4
4
|
|
|
5
|
-
const VERSION = '1.0.
|
|
5
|
+
const VERSION = '1.0.1';
|
|
6
6
|
const INSTRUMENTAL_THRESHOLD_MS = 7000; // Show dots for gaps >= 7s
|
|
7
7
|
|
|
8
8
|
const KPOE_SERVERS = [
|
|
@@ -3585,6 +3585,7 @@ export class AmLyrics extends LitElement {
|
|
|
3585
3585
|
!hasHyphen &&
|
|
3586
3586
|
trimmedText.length <= 7 &&
|
|
3587
3587
|
trimmedText.length > 0 &&
|
|
3588
|
+
durationMs >= 700 &&
|
|
3588
3589
|
durationMs >= trimmedText.length * 300;
|
|
3589
3590
|
|
|
3590
3591
|
// Optional romanization per syllable
|