{"action":"created","issue":{"url":"https://api.github.com/repos/watsonbox/pocketsphinx-ruby/issues/10","labels_url":"https://api.github.com/repos/watsonbox/pocketsphinx-ruby/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/watsonbox/pocketsphinx-ruby/issues/10/comments","events_url":"https://api.github.com/repos/watsonbox/pocketsphinx-ruby/issues/10/events","html_url":"https://github.com/watsonbox/pocketsphinx-ruby/issues/10","id":62163529,"number":10,"title":"Hypothesis changes for the same audio file.","user":{"login":"ojak","id":15408,"avatar_url":"https://avatars.githubusercontent.com/u/15408?v=3","gravatar_id":"","url":"https://api.github.com/users/ojak","html_url":"https://github.com/ojak","followers_url":"https://api.github.com/users/ojak/followers","following_url":"https://api.github.com/users/ojak/following{/other_user}","gists_url":"https://api.github.com/users/ojak/gists{/gist_id}","starred_url":"https://api.github.com/users/ojak/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ojak/subscriptions","organizations_url":"https://api.github.com/users/ojak/orgs","repos_url":"https://api.github.com/users/ojak/repos","events_url":"https://api.github.com/users/ojak/events{/privacy}","received_events_url":"https://api.github.com/users/ojak/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-16T17:56:33Z","updated_at":"2015-03-16T19:12:03Z","closed_at":null,"body":"I'm seeing an unexpected behavior while processing a fixed audio file.  The hypothesis will occasionally change each time I decode the same file.  I'm not sure if this is intended behavior or byproduct of how the decoder works, or a configurable option (some sort of random/pseudorandom generator, noise-reduction, phonetic hash sorting issue, warm-up, etc).\r\n\r\nHere's an example of what I'm seeing using a 16-bit, 16000Hz PCM Wave file containing the spoken word ***\"hello\"***:\r\n```ruby\r\n$ pry\r\n> require 'pocketsphinx-ruby'\r\n> Pocketsphinx.disable_logging\r\n> decoder = Pocketsphinx::Decoder.new(Pocketsphinx::Configuration.default)\r\n> 5.times { |n| decoder.decode('hello.wav'); puts decoder.hypothesis }\r\noh\r\nhello\r\nhello\r\nhello\r\nhello\r\n=> 5\r\n```\r\nAnybody have any insight as to what might be happening?"},"comment":{"url":"https://api.github.com/repos/watsonbox/pocketsphinx-ruby/issues/comments/81879080","html_url":"https://github.com/watsonbox/pocketsphinx-ruby/issues/10#issuecomment-81879080","issue_url":"https://api.github.com/repos/watsonbox/pocketsphinx-ruby/issues/10","id":81879080,"user":{"login":"watsonbox","id":17737,"avatar_url":"https://avatars.githubusercontent.com/u/17737?v=3","gravatar_id":"","url":"https://api.github.com/users/watsonbox","html_url":"https://github.com/watsonbox","followers_url":"https://api.github.com/users/watsonbox/followers","following_url":"https://api.github.com/users/watsonbox/following{/other_user}","gists_url":"https://api.github.com/users/watsonbox/gists{/gist_id}","starred_url":"https://api.github.com/users/watsonbox/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/watsonbox/subscriptions","organizations_url":"https://api.github.com/users/watsonbox/orgs","repos_url":"https://api.github.com/users/watsonbox/repos","events_url":"https://api.github.com/users/watsonbox/events{/privacy}","received_events_url":"https://api.github.com/users/watsonbox/received_events","type":"User","site_admin":false},"created_at":"2015-03-16T19:12:03Z","updated_at":"2015-03-16T19:12:03Z","body":"Very interesting I hadn't realized this.  Might be nice to have some facility in pocketsphinx-ruby which can figure out some values for a given device and serialize them for later re-use.  Would these values be worth re-using for a given device with the same sensitivity/noise level?  Are they independent of speaker/accent?  Perhaps an implementation could even detect when the pre-supplied values were out by a certain tolerance?"}}