Skip to content

Commit

Permalink
Updated docs, tweaked hotword detection settings + ensure that query_…
Browse files Browse the repository at this point in the history
…server pref value is set
  • Loading branch information
sveinbjornt committed May 23, 2023
1 parent b8c68b2 commit 009b699
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
4 changes: 2 additions & 2 deletions docs/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,9 @@ <h1>Um Emblu</h1>

<h1>Teymið að baki Emblu</h1>

<p>Upphafsmaður Emblu og höfundur smáforritsins er <strong>Sveinbjörn Þórðarson</strong>.</p>
<p>Upphafsmaður Emblu og höfundur forritsins er <strong>Sveinbjörn Þórðarson</strong>.</p>

<p>Aðrir í teymi Miðeindar eru:</p>
<p>Önnur í teymi Miðeindar eru:</p>

<p><strong>Elías Bjartur Einarsson</strong></p>

Expand Down
2 changes: 1 addition & 1 deletion lib/common.dart
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const String kSoftwareAuthor = 'Miðeind ehf.';
// Hotword detection
const String kHotwordModelName = 'hae_embla.pmdl';
const double kHotwordSensitivity = 0.48;
const double kHotwordAudioGain = 1.12;
const double kHotwordAudioGain = 1.08;
const bool kHotwordApplyFrontend = false;
const String kHotwordAssetsDirectory = 'assets/hotword';

Expand Down
4 changes: 4 additions & 0 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ void main() async {
if (Prefs().stringForKey("asr_engine") == null) {
Prefs().setStringForKey("asr_engine", kDefaultASREngine);
}
// Make sure query_server is set
if (Prefs().stringForKey("query_server") == null) {
Prefs().setStringForKey("query_server", kDefaultQueryServer);
}

dlog("Shared prefs: ${Prefs()}");

Expand Down

0 comments on commit 009b699

Please sign in to comment.