echogarden 2.8.3 → 2.8.4
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.
|
@@ -2026,39 +2026,39 @@
|
|
|
2026
2026
|
{
|
|
2027
2027
|
"pronunciation": {
|
|
2028
2028
|
"espeak": {
|
|
2029
|
-
"en-us": "ɹ
|
|
2030
|
-
"en-gb-x-rp": "ɹ
|
|
2029
|
+
"en-us": "ɹ ˈɛ f j uː s",
|
|
2030
|
+
"en-gb-x-rp": "ɹ ˈɛ f j uː s"
|
|
2031
2031
|
}
|
|
2032
2032
|
},
|
|
2033
2033
|
"pos": [
|
|
2034
|
-
"
|
|
2034
|
+
"NN"
|
|
2035
2035
|
],
|
|
2036
2036
|
|
|
2037
2037
|
"precededBy": [
|
|
2038
|
-
"
|
|
2038
|
+
"a", "the", "more", "every", "each"
|
|
2039
2039
|
],
|
|
2040
2040
|
|
|
2041
2041
|
"notPrecededBy": [
|
|
2042
|
-
"
|
|
2042
|
+
"to", "i", "me", "they", "we", "should", "will", "would", "wouldn't", "won't", "don't", "doesn't", "should", "shouldn't", "could", "couldn't", "must", "mustn't", "shall", "can", "can't", "may", "might", "did", "didn't", "does", "doesn't"
|
|
2043
2043
|
],
|
|
2044
2044
|
|
|
2045
2045
|
"followedBy": [
|
|
2046
|
-
"to"
|
|
2047
2046
|
],
|
|
2048
2047
|
|
|
2049
2048
|
"notFollowedBy": [
|
|
2049
|
+
"to"
|
|
2050
2050
|
],
|
|
2051
2051
|
|
|
2052
|
-
"example": "
|
|
2052
|
+
"example": "We separate refuse from recyclables."
|
|
2053
2053
|
},
|
|
2054
2054
|
{
|
|
2055
2055
|
"pronunciation": {
|
|
2056
2056
|
"espeak": {
|
|
2057
|
-
"en-us": "ɹ
|
|
2058
|
-
"en-gb-x-rp": "ɹ
|
|
2057
|
+
"en-us": "ɹ ᵻ f j ˈu z",
|
|
2058
|
+
"en-gb-x-rp": "ɹ ᵻ f j ˈuː z"
|
|
2059
2059
|
}
|
|
2060
2060
|
},
|
|
2061
|
-
"example": "
|
|
2061
|
+
"example": "I must refuse."
|
|
2062
2062
|
}
|
|
2063
2063
|
],
|
|
2064
2064
|
"import": [
|
|
@@ -1703,6 +1703,46 @@
|
|
|
1703
1703
|
"en-gb-x-rp": "n ə m ˈɛ ŋ k l ə tʃ ɐ"
|
|
1704
1704
|
}
|
|
1705
1705
|
}
|
|
1706
|
+
},
|
|
1707
|
+
"axes": {
|
|
1708
|
+
"pronunciation": {
|
|
1709
|
+
"espeak": {
|
|
1710
|
+
"en-us": "ˈæ k s i z",
|
|
1711
|
+
"en-gb-x-rp": "ˈæ k s i z"
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
},
|
|
1715
|
+
"preloaded": {
|
|
1716
|
+
"pronunciation": {
|
|
1717
|
+
"espeak": {
|
|
1718
|
+
"en-us": "p ɹ i l ˈoʊ d ᵻ d",
|
|
1719
|
+
"en-gb-x-rp": "p ɹ i l ˈoʊ d ᵻ d"
|
|
1720
|
+
}
|
|
1721
|
+
}
|
|
1722
|
+
},
|
|
1723
|
+
"absorbed": {
|
|
1724
|
+
"pronunciation": {
|
|
1725
|
+
"espeak": {
|
|
1726
|
+
"en-us": "ə b z ˈɔːɹ b d",
|
|
1727
|
+
"en-gb-x-rp": "ə b z ˈɔː b d"
|
|
1728
|
+
}
|
|
1729
|
+
}
|
|
1730
|
+
},
|
|
1731
|
+
"disparate": {
|
|
1732
|
+
"pronunciation": {
|
|
1733
|
+
"espeak": {
|
|
1734
|
+
"en-us": "d ˈɪ s p ɹ ə t",
|
|
1735
|
+
"en-gb-x-rp": "d ˈɪ s p ɹ ə t"
|
|
1736
|
+
}
|
|
1737
|
+
}
|
|
1738
|
+
},
|
|
1739
|
+
"qwen": {
|
|
1740
|
+
"pronunciation": {
|
|
1741
|
+
"espeak": {
|
|
1742
|
+
"en-us": "k w ˈɛ n",
|
|
1743
|
+
"en-gb-x-rp": "k w ˈɛ n"
|
|
1744
|
+
}
|
|
1745
|
+
}
|
|
1706
1746
|
}
|
|
1707
1747
|
}
|
|
1708
1748
|
}
|
package/dist/nlp/IPA.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare function getPhoneSubstitutionCost1(ipa1: string, ipa2: string):
|
|
2
|
-
export declare function getPhoneSubstitutionCost2(ipa1: string, ipa2: string):
|
|
3
|
-
export declare function getPhoneSubstitutionCost3(ipa1: string, ipa2: string):
|
|
1
|
+
export declare function getPhoneSubstitutionCost1(ipa1: string, ipa2: string): 0 | 1;
|
|
2
|
+
export declare function getPhoneSubstitutionCost2(ipa1: string, ipa2: string): 0 | 1 | 0.5;
|
|
3
|
+
export declare function getPhoneSubstitutionCost3(ipa1: string, ipa2: string): 0 | 1 | 0.5 | 0.75;
|
|
4
4
|
export declare function isKnownSymbol(ipa: string): boolean;
|
|
5
5
|
export declare function isConsonant(ipa: string): boolean;
|
|
6
6
|
export declare function isVowel(ipa: string): boolean;
|
|
@@ -82,7 +82,7 @@ export declare class Whisper {
|
|
|
82
82
|
languageTokenToLanguageIndex(languageToken: number): void;
|
|
83
83
|
get isEnglishOnlyModel(): boolean;
|
|
84
84
|
get isLargeModel(): boolean;
|
|
85
|
-
get filterbankCount():
|
|
85
|
+
get filterbankCount(): 80 | 128;
|
|
86
86
|
get filterbanks(): Filterbank[];
|
|
87
87
|
get alignmentHeadIndexes(): number[];
|
|
88
88
|
get defaultTimestampAccuracy(): "medium" | "high";
|
package/docs/Options.md
CHANGED
|
@@ -163,7 +163,7 @@ Applies to CLI operation: `transcribe`, API method: `recognize`
|
|
|
163
163
|
* `whisper.topCandidateCount`: the number of top candidate tokens to consider. Defaults to `5`
|
|
164
164
|
* `whisper.punctuationThreshold`: the minimal probability for a punctuation token, included in the top candidates, to be chosen unconditionally. A lower threshold encourages the model to output more punctuation characters. Defaults to `0.2`
|
|
165
165
|
* `whisper.autoPromptParts`: use previous part's recognized text as the prompt for the next part. Disabling this may help to prevent repetition carrying over between parts, in some cases. Defaults to `true` (**Note**: currently always disabled for `large-v3-turbo` model due to an apparent issue with corrupt output when prompted)
|
|
166
|
-
* `whisper.maxTokensPerPart`: maximum number of tokens to decode for each audio part. Defaults to `
|
|
166
|
+
* `whisper.maxTokensPerPart`: maximum number of tokens to decode for each audio part. Defaults to `220` (which is the highest possible)
|
|
167
167
|
* `whisper.suppressRepetition`: attempt to suppress decoding of repeating token patterns. Defaults to `true`
|
|
168
168
|
* `whisper.repetitionThreshold`: minimal repetition / compressibility score to cause a part not to be auto-prompted to the next part. Defaults to `2.4`
|
|
169
169
|
* `whisper.decodeTimestampTokens`: enable/disable decoding of timestamp tokens. Setting to `false` can reduce the occurrence of hallucinations and token repetition loops, possibly due to the overall reduction in the number of tokens decoded. This has no impact on the accuracy of timestamps, since they are derived independently using cross-attention weights. However, there are cases where this can cause the model to end a part prematurely, especially in singing and less speech-like voice segments, or when there are multiple speakers. Defaults to `true`
|
|
@@ -260,7 +260,7 @@ Applies to the `whisper` engine only. To provide Whisper options for `dtw-ra`, u
|
|
|
260
260
|
|
|
261
261
|
* `whisper.model`: Whisper model to use. Defaults to `tiny` or `tiny.en`
|
|
262
262
|
* `whisper.endTokenThreshold`: minimal probability to accept an end token for a recognized part. The probability is measured via the softmax between the end token's logit and the second highest logit. You can try to adjust this threshold in cases the model is ending a part with too few, or many tokens decoded. Defaults to `0.9`. On the last audio part, it is always effectively set to `Infinity`, to ensure the remaining transcript tokens are decoded in full
|
|
263
|
-
* `whisper.maxTokensPerPart`: maximum number of tokens to decode per part. Should help avoid edge cases where the model never reaches an end token for the part, which otherwise may cause the model to decode too many tokens and eventually crash. Defaults to
|
|
263
|
+
* `whisper.maxTokensPerPart`: maximum number of tokens to decode per part. Should help avoid edge cases where the model never reaches an end token for the part, which otherwise may cause the model to decode too many tokens and eventually crash. Defaults to `220` (highest possible)
|
|
264
264
|
* `whisper.timestampAccuracy`: timestamp accuracy. can be `medium` or `high`. `medium` uses a reduced subset of attention heads for alignment, `high` uses all attention heads and is thus more accurate at the word level, but slower for larger models. Defaults to `high` for the `tiny` and `base` models, and `medium` for the larger models. Note: setting `high` for model `large-v3-turbo` reverts to `medium`, due to poor results with the `high` setting for that model (possibly related to the 16-bit quantization).
|
|
265
265
|
* `whisper.encoderProvider`: encoder ONNX provider. See details in recognition section above
|
|
266
266
|
* `whisper.decoderProvider`: decoder ONNX provider. See details in recognition section above
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "echogarden",
|
|
3
|
-
"version": "2.8.
|
|
3
|
+
"version": "2.8.4",
|
|
4
4
|
"description": "An easy-to-use speech toolset. Includes tools for synthesis, recognition, alignment, speech translation, language detection, source separation and more.",
|
|
5
5
|
"author": "Rotem Dan",
|
|
6
6
|
"license": "GPL-3.0",
|
|
@@ -84,7 +84,7 @@
|
|
|
84
84
|
"kuromoji": "^0.1.2",
|
|
85
85
|
"microsoft-cognitiveservices-speech-sdk": "^1.43.1",
|
|
86
86
|
"msgpack-lite": "^0.1.26",
|
|
87
|
-
"onnxruntime-node": "^1.
|
|
87
|
+
"onnxruntime-node": "^1.21.1",
|
|
88
88
|
"openai": "^4.98.0",
|
|
89
89
|
"regexp-composer": "^0.3.0",
|
|
90
90
|
"sam-js": "^0.3.1",
|