Repository navigation
v1.2.0
Added
- Keyword spotting:
KeywordSpotter(recognizer, keywords).find(samples)for files and.stream()for live audio returnDetection(keyword, text, start, end, score, confidence). Matching is on spoken-form words; the last word may carry Turkish suffixes ("kamp" finds "kampa", not "kampanya").min_confidence(default 0.5) drops unsure detections. - Word timestamps and confidence:
Recognizer.transcribe_words()andUtterance.wordsreturnWord(text, start, end, score, confidence)in spoken form. Times count from the start of the stream acrosscut().confidenceis the probability that the word is right, calibrated per decoding setup on held-out speech; it isNonefor models without acalibration.jsonor for a setup it does not cover. seda-v0.2 and seda-v0.2-tiny cover thefast,balancedandaccuratemodes and the 0.16 and 0.32 s chunks (chunk=8and16), with and without the LM. - Keyword spotting demo (
python -m sedalib.demo.keywords): keywords as tags, live microphone with a waveform and a recording clock, and matches in a scrolling panel with their confidence. Two modes on seda-v0.2-tiny with 0.16 s steps: Low latency (greedy) gives a keyword's confidence as soon as the next word starts, since a word greedy search has written does not change; High accuracy (beam search + LM) gives it at the pause. A keyword shows up greyed out as soon as it is heard, and each match shows how soon after it was shown and final. Keywords and the minimum confidence can be changed while recording; a keyword counts from the moment it is added.SEDA_MODEL,SEDA_CHUNKandSEDA_ENDPOINT_SILENCEchange the defaults.
Full Changelog: v1.1.0...v1.2.0