Mike0021 commited on
Commit
d44cee8
·
verified ·
1 Parent(s): 282fbf7

Ava speaks ten pre-rendered lines while the model loads

Browse files
chunk-s08sdfdm.js → chunk-yv7mssbz.js RENAMED
The diff for this file is too large to render. See raw diff
 
index.html CHANGED
@@ -12,7 +12,7 @@
12
  rel="stylesheet"
13
  />
14
 
15
- <link rel="stylesheet" crossorigin href="./chunk-w8avpjmm.css"><script type="module" crossorigin src="./chunk-s08sdfdm.js"></script></head>
16
  <body>
17
  <main id="app">
18
  <!-- The avatar is the hero: a full-viewport 3D stage. -->
 
12
  rel="stylesheet"
13
  />
14
 
15
+ <link rel="stylesheet" crossorigin href="./chunk-w8avpjmm.css"><script type="module" crossorigin src="./chunk-yv7mssbz.js"></script></head>
16
  <body>
17
  <main id="app">
18
  <!-- The avatar is the hero: a full-viewport 3D stage. -->
loading/01.mp3 ADDED
Binary file (39.8 kB). View file
 
loading/02.mp3 ADDED
Binary file (20.7 kB). View file
 
loading/03.mp3 ADDED
Binary file (24.1 kB). View file
 
loading/04.mp3 ADDED
Binary file (26.3 kB). View file
 
loading/05.mp3 ADDED
Binary file (27.6 kB). View file
 
loading/06.mp3 ADDED
Binary file (37.2 kB). View file
 
loading/07.mp3 ADDED
Binary file (28.2 kB). View file
 
loading/08.mp3 ADDED
Binary file (37.2 kB). View file
 
loading/09.mp3 ADDED
Binary file (27.2 kB). View file
 
loading/10.mp3 ADDED
Binary file (33.4 kB). View file
 
workers/model-worker.js CHANGED
@@ -40,6 +40,7 @@ let idle = Promise.resolve();
40
  /** @type {Map<number, AbortController>} */
41
  const running = new Map();
42
  const simulateRtf = Number(SEARCH.get("simulateRtf")) || 0;
 
43
 
44
  const post = (msg, transfer = []) => self.postMessage(msg, { transfer });
45
 
@@ -84,6 +85,7 @@ async function load({ model: modelId, system: sys }) {
84
  session = model.create_session();
85
  post({ kind: "progress", status: "Getting ready" });
86
  await session.prime(messages()).result;
 
87
  post({ kind: "ready", device: model.deviceInfo(), sampleRate: model.audio_sampling_rate });
88
  return;
89
  } catch (err) {
 
40
  /** @type {Map<number, AbortController>} */
41
  const running = new Map();
42
  const simulateRtf = Number(SEARCH.get("simulateRtf")) || 0;
43
+ const holdLoadMs = Number(SEARCH.get("holdLoadMs")) || 0; // testing: stretch out the load
44
 
45
  const post = (msg, transfer = []) => self.postMessage(msg, { transfer });
46
 
 
85
  session = model.create_session();
86
  post({ kind: "progress", status: "Getting ready" });
87
  await session.prime(messages()).result;
88
+ if (holdLoadMs) await new Promise((r) => setTimeout(r, holdLoadMs));
89
  post({ kind: "ready", device: model.deviceInfo(), sampleRate: model.audio_sampling_rate });
90
  return;
91
  } catch (err) {