Skip to content
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

Unable to import models via Vosk Model Manager #5

Open
boxfriend opened this issue Apr 9, 2023 · 1 comment
Open

Unable to import models via Vosk Model Manager #5

boxfriend opened this issue Apr 9, 2023 · 1 comment

Comments

@boxfriend
Copy link

Under the Import new models section of the Vosk Model Manager with the Source set as alphacephei.com selecting Show available models does not work. It throws an exception

System.Xml.XmlTextReaderImpl.Throw (System.Exception e) (at <18ec6be538e24196bb0c8cd722440d04>:0)
System.Xml.XmlTextReaderImpl.Throw (System.String res, System.String arg) (at <18ec6be538e24196bb0c8cd722440d04>:0)
System.Xml.XmlTextReaderImpl.Throw (System.Int32 pos, System.String res) (at <18ec6be538e24196bb0c8cd722440d04>:0)
System.Xml.XmlTextReaderImpl.ParseDocumentContent () (at <18ec6be538e24196bb0c8cd722440d04>:0)
System.Xml.XmlTextReaderImpl.Read () (at <18ec6be538e24196bb0c8cd722440d04>:0)
System.Xml.Linq.XElement.ReadElementFrom (System.Xml.XmlReader r, System.Xml.Linq.LoadOptions o) (at <2167034a298f454682b17f19f69d5cb2>:0)
System.Xml.Linq.XElement..ctor (System.Xml.XmlReader r, System.Xml.Linq.LoadOptions o) (at <2167034a298f454682b17f19f69d5cb2>:0)
System.Xml.Linq.XElement.Load (System.Xml.XmlReader reader, System.Xml.Linq.LoadOptions options) (at <2167034a298f454682b17f19f69d5cb2>:0)
System.Xml.Linq.XElement.Parse (System.String text, System.Xml.Linq.LoadOptions options) (at <2167034a298f454682b17f19f69d5cb2>:0)
System.Xml.Linq.XElement.Parse (System.String text) (at <2167034a298f454682b17f19f69d5cb2>:0)
Yetibyte.Unity.SpeechRecognition.ModelManagement.HttpVoskModelProvider+<>c__DisplayClass14_0.<FetchModels>b__0 (UnityEngine.AsyncOperation op) (at Assets/Vosk4Unity/Src/Yetibyte.Unity.SpeechRecognition/ModelManagement/HttpVoskModelProvider.cs:57)
UnityEngine.AsyncOperation.InvokeCompletionEvent () (at <2ec790438a214ee286016c37f7604299>:0)

importing models manually works fine and even shows the Delete action in the Local models section

@Yeti47
Copy link
Owner

Yeti47 commented Jun 22, 2023

Hi there, sorry, I have neglected this repo for a while.
Yea, this was bound to happen at some point. The model source alphacephei.com really just uses a web scraper internally which is always a bit risky in terms of stability. Once their website changes, the parsing may fail.
If I find the time, I can look into implementing a different model source that basially mirrors the download links at alphacephei.com.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants