@startsimpli/integrations 0.2.80 → 0.2.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,15 @@
1
+ /**
2
+ * The Tandem Go recording path, packaged (bd startsim-ij1lw.9). Pure logic: nothing here
3
+ * imports react-native or expo. The device bindings (expo-audio driver, file system,
4
+ * AVAudioSession module) stay in the app shell and are injected through the interfaces
5
+ * `AudioDriver`, `SessionInspector`, `PermissionsApi` and `RecordingFile`.
6
+ */
7
+ export * from './levels';
8
+ export * from './diagnostics';
9
+ export * from './permissions';
10
+ export * from './recorder';
11
+ export * from './recorderAudio';
12
+ export * from './recovery';
13
+ export * from './deeplink';
14
+ export * from './session';
15
+ export * from './notes';
@@ -0,0 +1,32 @@
1
+ /** Peak below this (dBFS) over a whole recording means the mic heard nothing. */
2
+ export const NO_AUDIO_FLOOR_DB = -45;
3
+ const SILENCE_DB = -160;
4
+
5
+ export interface LevelSummary {
6
+ peakDb: number;
7
+ rmsDb: number;
8
+ samples: number;
9
+ }
10
+
11
+ export function createLevelTracker() {
12
+ let peak = SILENCE_DB;
13
+ let power = 0;
14
+ let n = 0;
15
+ return {
16
+ push(db: number) {
17
+ peak = Math.max(peak, db);
18
+ power += 10 ** (db / 10);
19
+ n += 1;
20
+ },
21
+ summary(): LevelSummary {
22
+ return { peakDb: peak, rmsDb: n ? 10 * Math.log10(power / n) : SILENCE_DB, samples: n };
23
+ },
24
+ };
25
+ }
26
+
27
+ export const isSilent = (s: Pick<LevelSummary, 'peakDb' | 'samples'>) => s.samples === 0 || s.peakDb < NO_AUDIO_FLOOR_DB;
28
+
29
+ /** dBFS -> 0..1 for the on-screen meter (-60 dB and below is empty). */
30
+ export function meterFraction(db: number): number {
31
+ return Math.min(1, Math.max(0, (db + 60) / 60));
32
+ }
@@ -0,0 +1,46 @@
1
+ import { createVoiceApi, type CorpusHttp, type CorpusScope } from '../../corpus';
2
+
3
+ export interface NoteFile {
4
+ id: string;
5
+ uri: string;
6
+ durationMs: number;
7
+ }
8
+
9
+ type AuthorizedFetch = (url: string, init?: RequestInit) => Promise<Response>;
10
+
11
+ /** Send recordings to Tandem and read the latest back; the note logic is the shared corpus voice api. */
12
+ export function createNotes(deps: { tandemUrl: string; authorizedFetch: AuthorizedFetch; limit?: number; createForm?: () => FormData; filePart?: (uri: string) => Blob }) {
13
+ const base = deps.tandemUrl.replace(/\/+$/, '');
14
+
15
+ const http: CorpusHttp = {
16
+ async get<T>(path: string, options?: { params?: Record<string, unknown> }) {
17
+ const query = new URLSearchParams();
18
+ for (const [k, v] of Object.entries(options?.params ?? {})) if (v !== undefined) query.set(k, String(v));
19
+ const qs = query.toString();
20
+ const res = await deps.authorizedFetch(`${base}/${path}${qs ? `?${qs}` : ''}`, { method: 'GET' });
21
+ if (!res.ok) throw Object.assign(new Error(`GET ${path} failed (${res.status})`), { status: res.status });
22
+ return (await res.json()) as T;
23
+ },
24
+ };
25
+
26
+ const voice = createVoiceApi({
27
+ http,
28
+ scope: {} as CorpusScope,
29
+ limit: deps.limit ?? 5,
30
+ upload: async () => { throw new Error('use notes.upload'); },
31
+ });
32
+
33
+ return {
34
+ /** POST /corpus/voice. The client noteId makes a retry land on the same note. Rejects on any non-2xx. */
35
+ async upload(file: NoteFile): Promise<void> {
36
+ const body = (deps.createForm ?? (() => new FormData()))();
37
+ if (deps.filePart) body.append('audio', deps.filePart(file.uri), 'note.m4a');
38
+ else body.append('audio', { uri: file.uri, name: 'note.m4a', type: 'audio/mp4' } as unknown as Blob);
39
+ body.append('durationMs', String(file.durationMs));
40
+ body.append('noteId', file.id);
41
+ const res = await deps.authorizedFetch(`${base}/corpus/voice`, { method: 'POST', body });
42
+ if (!res.ok) throw Object.assign(new Error(`Upload failed (${res.status})`), { status: res.status });
43
+ },
44
+ recent: () => voice.list(),
45
+ };
46
+ }
@@ -0,0 +1,49 @@
1
+ export interface PermissionResult {
2
+ status: string;
3
+ granted: boolean;
4
+ canAskAgain: boolean;
5
+ }
6
+
7
+ export interface PermissionsApi {
8
+ get(): Promise<PermissionResult>;
9
+ request(): Promise<PermissionResult>;
10
+ }
11
+
12
+ export type Permission = 'granted' | 'denied';
13
+
14
+ /**
15
+ * Microphone permission. ensure() resolves only after the user has answered, so
16
+ * recording can never start before the grant (the empty-file race).
17
+ */
18
+ export function createPermissionFlow(deps: {
19
+ perms: PermissionsApi;
20
+ openSettings: () => Promise<void>;
21
+ log?: (event: string, fields?: Record<string, unknown>) => void;
22
+ /** A native permission call that has not answered by then is a failure, not a wait (default 10 s; the prompt itself is exempt). */
23
+ timeoutMs?: number;
24
+ }) {
25
+ const log = deps.log ?? (() => undefined);
26
+ const limit = <T>(name: string, work: Promise<T>): Promise<T> => {
27
+ const ms = deps.timeoutMs ?? 10000;
28
+ let timer: ReturnType<typeof setTimeout>;
29
+ const timeout = new Promise<never>((_, reject) => {
30
+ timer = setTimeout(() => {
31
+ log('permission', { stage: 'timeout', call: name, ms });
32
+ reject(new Error(`permission ${name} timed out after ${ms} ms`));
33
+ }, ms);
34
+ });
35
+ return Promise.race([work, timeout]).finally(() => clearTimeout(timer));
36
+ };
37
+ return {
38
+ async ensure(): Promise<Permission> {
39
+ const before = await limit('get', deps.perms.get());
40
+ log('permission', { stage: 'check', status: before.status, canAskAgain: before.canAskAgain });
41
+ if (before.granted) return 'granted';
42
+ if (before.status === 'denied' && !before.canAskAgain) return 'denied';
43
+ const after = await deps.perms.request();
44
+ log('permission', { stage: 'prompt', status: after.status, canAskAgain: after.canAskAgain });
45
+ return after.granted ? 'granted' : 'denied';
46
+ },
47
+ openSettings: () => deps.openSettings(),
48
+ };
49
+ }
@@ -0,0 +1,164 @@
1
+ import type { Permission } from './permissions';
2
+ import { isSilent } from './levels';
3
+ import { STRINGS } from './strings';
4
+
5
+ export interface StoppedRecording {
6
+ uri: string;
7
+ durationMs: number;
8
+ bytes?: number;
9
+ peakDb?: number;
10
+ rmsDb?: number;
11
+ }
12
+
13
+ export interface RecorderAudio {
14
+ start(handlers: { onLevel: (db: number) => void }): Promise<void>;
15
+ /** Resolves only when the file is finalized on disk. */
16
+ stop(): Promise<StoppedRecording>;
17
+ }
18
+
19
+ export type Phase = 'idle' | 'recording' | 'uploading' | 'sent' | 'queued';
20
+
21
+ export interface RecorderState {
22
+ phase: Phase;
23
+ noteId?: string;
24
+ error?: string;
25
+ permission?: Permission;
26
+ /** Set after STOP when the mic heard nothing. The note is still uploaded. */
27
+ warning?: 'no-audio';
28
+ levelDb?: number;
29
+ }
30
+
31
+ export interface GoOptions {
32
+ autostopSeconds?: number;
33
+ }
34
+
35
+ export type SendFile = {
36
+ id: string;
37
+ uri: string;
38
+ durationMs: number;
39
+ };
40
+
41
+ interface Deps {
42
+ audio: RecorderAudio;
43
+ send(file: SendFile): Promise<'sent' | 'queued'>;
44
+ newId(): string;
45
+ ensurePermission?: () => Promise<Permission>;
46
+ diag?: { log(event: string, fields?: Record<string, unknown>): void };
47
+ now?: () => number;
48
+ schedule?: (fn: () => void, ms: number) => () => void;
49
+ }
50
+
51
+ const defaultSchedule = (fn: () => void, ms: number) => {
52
+ const handle = setTimeout(fn, ms);
53
+ return () => clearTimeout(handle);
54
+ };
55
+
56
+ export function createRecorder(deps: Deps) {
57
+ const now = deps.now ?? Date.now;
58
+ const schedule = deps.schedule ?? defaultSchedule;
59
+ const log = (event: string, fields?: Record<string, unknown>) => deps.diag?.log(event, fields);
60
+ let state: RecorderState = { phase: 'idle' };
61
+ const listeners = new Set<(s: RecorderState) => void>();
62
+ let starting = false;
63
+ let startedAt = 0;
64
+ let cancelAutostop: (() => void) | null = null;
65
+ let permission: Permission | 'unknown' = 'unknown';
66
+
67
+ const set = (next: RecorderState) => {
68
+ state = next;
69
+ listeners.forEach((l) => l(state));
70
+ };
71
+
72
+ async function go(options: GoOptions = {}): Promise<void> {
73
+ if (starting || state.phase === 'recording' || state.phase === 'uploading') return;
74
+ starting = true;
75
+ try {
76
+ if (deps.ensurePermission) {
77
+ try {
78
+ permission = await deps.ensurePermission();
79
+ } catch (e) {
80
+ const error = e instanceof Error ? e.message : String(e);
81
+ log('record.error', { stage: 'permission', error });
82
+ set({ phase: 'idle', error: STRINGS.micStartFailed });
83
+ return;
84
+ }
85
+ if (permission === 'denied') {
86
+ log('record.denied', {});
87
+ state = { phase: 'idle', permission: 'denied' };
88
+ listeners.forEach((l) => l(state));
89
+ return;
90
+ }
91
+ }
92
+ const id = deps.newId();
93
+ try {
94
+ await deps.audio.start({
95
+ onLevel: (db) => {
96
+ if (state.phase === 'recording') set({ ...state, levelDb: db });
97
+ },
98
+ });
99
+ } catch (e) {
100
+ const error = e instanceof Error ? e.message : String(e);
101
+ log('record.error', { id, error });
102
+ set({ phase: 'idle', error });
103
+ return;
104
+ }
105
+ startedAt = now();
106
+ log('record.start', { id, permission });
107
+ set({ phase: 'recording', noteId: id, permission: permission === 'unknown' ? undefined : permission });
108
+ if (options.autostopSeconds) {
109
+ log('record.autostop.scheduled', { id, seconds: options.autostopSeconds });
110
+ cancelAutostop = schedule(() => { void stop(); }, options.autostopSeconds * 1000);
111
+ }
112
+ } finally {
113
+ starting = false;
114
+ }
115
+ }
116
+
117
+ async function stop(): Promise<StoppedRecording | null> {
118
+ if (state.phase !== 'recording') return null;
119
+ cancelAutostop?.();
120
+ cancelAutostop = null;
121
+ const id = state.noteId!;
122
+ let file: StoppedRecording;
123
+ try {
124
+ file = await deps.audio.stop();
125
+ } catch (e) {
126
+ const error = e instanceof Error ? e.message : String(e);
127
+ log('record.error', { id, error, stage: 'stop' });
128
+ set({ phase: 'idle', error });
129
+ return null;
130
+ }
131
+ const elapsedMs = now() - startedAt;
132
+ log('record.stop', {
133
+ id, uri: file.uri, bytes: file.bytes, durationMs: file.durationMs, elapsedMs, peakDb: file.peakDb, rmsDb: file.rmsDb,
134
+ });
135
+ const silent = file.peakDb !== undefined && isSilent({ peakDb: file.peakDb, samples: 1 });
136
+ if (silent) log('record.no-audio', { id, peakDb: file.peakDb });
137
+ set({ phase: 'uploading', noteId: id, permission: state.permission });
138
+ let outcome: 'sent' | 'queued';
139
+ try {
140
+ outcome = await deps.send({ id, uri: file.uri, durationMs: file.durationMs });
141
+ } catch (e) {
142
+ log('record.send-error', { id, error: e instanceof Error ? e.message : String(e) });
143
+ outcome = 'queued';
144
+ }
145
+ set({ phase: outcome, noteId: id, permission: state.permission, ...(silent ? { warning: 'no-audio' as const } : {}) });
146
+ return file;
147
+ }
148
+
149
+ return {
150
+ getState: () => state,
151
+ subscribe(listener: (s: RecorderState) => void) {
152
+ listeners.add(listener);
153
+ return () => { listeners.delete(listener); };
154
+ },
155
+ go,
156
+ stop,
157
+ /** The system took the mic (call, Siri, route loss): finalize and queue what we have. */
158
+ async interrupt(reason: string) {
159
+ if (state.phase !== 'recording') return;
160
+ log('record.interrupted', { id: state.noteId, reason });
161
+ await stop();
162
+ },
163
+ };
164
+ }
@@ -0,0 +1,154 @@
1
+ import { createLevelTracker } from './levels';
2
+ import { STRINGS } from './strings';
3
+ import type { RecorderAudio, StoppedRecording } from './recorder';
4
+
5
+ /** 'simple' = mono, 44.1 kHz AAC m4a, default mode: the retry profile. */
6
+ export type RecordProfile = 'normal' | 'simple';
7
+
8
+ /** The slice of expo-audio the recorder needs (real binding: expoDriver.ts). */
9
+ export interface AudioDriver {
10
+ /** record-capable category, background recording, activated. */
11
+ configureSession(): Promise<void>;
12
+ /** Builds a NEW recorder. Must run after configureSession (iOS 16.2+ ordering). */
13
+ create(profile: RecordProfile): void;
14
+ prepare(): Promise<void>;
15
+ record(): void;
16
+ stop(): Promise<void>;
17
+ status(): { url: string | null; durationMillis: number; metering?: number; isRecording: boolean };
18
+ }
19
+
20
+ export interface SessionInfo {
21
+ category: string;
22
+ mode: string;
23
+ options: string[];
24
+ sampleRate: number;
25
+ inputs: Array<{ type: string; name: string }>;
26
+ }
27
+
28
+ /** AVAudioSession facts and events (real binding: the local tandem-audio-session module). */
29
+ export interface SessionInspector {
30
+ info(): Promise<SessionInfo>;
31
+ onInterruption(cb: (e: { type: 'began' | 'ended' }) => void): () => void;
32
+ onRouteChange(cb: (e: { reason: string; inputs?: SessionInfo['inputs'] }) => void): () => void;
33
+ }
34
+
35
+ const RECORD_CATEGORIES = ['playAndRecord', 'record'];
36
+ const SETTLE_TRIES = 20;
37
+ const POLL_MS = 100;
38
+ const START_CHECK_MS = 250;
39
+
40
+ export function createRecorderAudio(deps: {
41
+ driver: AudioDriver;
42
+ session: SessionInspector;
43
+ fs: { size(uri: string): Promise<number> };
44
+ poll: (fn: () => void, ms: number) => () => void;
45
+ sleep: (ms: number) => Promise<void>;
46
+ diag: { log(event: string, fields?: Record<string, unknown>): void };
47
+ onInterrupted: (reason: 'interruption' | 'route-change') => void;
48
+ /** A start step that has not answered by then counts as failed (default 8 s). */
49
+ stepTimeoutMs?: number;
50
+ }): RecorderAudio {
51
+ let active = false;
52
+ let tracker = createLevelTracker();
53
+ const cleanup: Array<() => void> = [];
54
+ const release = () => { cleanup.splice(0).forEach((fn) => fn()); };
55
+
56
+ async function settledSize(uri: string): Promise<number> {
57
+ let last = 0;
58
+ for (let i = 0; i < SETTLE_TRIES; i++) {
59
+ const size = await deps.fs.size(uri).catch(() => 0);
60
+ if (size > 0 && size === last) return size;
61
+ last = size;
62
+ await deps.sleep(50);
63
+ }
64
+ return last;
65
+ }
66
+
67
+ let step = '';
68
+ const guarded = <T>(name: string, work: Promise<T>): Promise<T> => {
69
+ step = name;
70
+ const ms = deps.stepTimeoutMs ?? 8000;
71
+ let timer: ReturnType<typeof setTimeout>;
72
+ const timeout = new Promise<never>((_, reject) => {
73
+ timer = setTimeout(() => reject(new Error(`${name} timed out after ${ms} ms`)), ms);
74
+ });
75
+ return Promise.race([work, timeout]).finally(() => clearTimeout(timer));
76
+ };
77
+
78
+ async function attempt(profile: RecordProfile): Promise<void> {
79
+ await guarded('configureSession', deps.driver.configureSession());
80
+ step = 'create';
81
+ deps.driver.create(profile);
82
+ await guarded('prepare', deps.driver.prepare());
83
+ step = 'record';
84
+ deps.driver.record();
85
+ await deps.sleep(START_CHECK_MS);
86
+ // record() can be a silent no-op: trust only a recorder that says it is recording.
87
+ if (!deps.driver.status().isRecording) throw new Error('recorder did not start');
88
+ }
89
+
90
+ async function startWithRetry(): Promise<void> {
91
+ for (const profile of ['normal', 'simple'] as const) {
92
+ try {
93
+ await attempt(profile);
94
+ return;
95
+ } catch (e) {
96
+ const info = await deps.session.info().catch(() => null);
97
+ deps.diag.log('audio.start-failed', {
98
+ profile, step, error: e instanceof Error ? e.message : String(e), final: profile === 'simple',
99
+ category: info?.category, mode: info?.mode, options: info?.options, sampleRate: info?.sampleRate, inputs: info?.inputs,
100
+ });
101
+ }
102
+ }
103
+ throw new Error(STRINGS.micStartFailed);
104
+ }
105
+
106
+ return {
107
+ async start({ onLevel }) {
108
+ tracker = createLevelTracker();
109
+ await startWithRetry();
110
+ active = true;
111
+
112
+ const info = await deps.session.info().catch(() => null);
113
+ if (info) {
114
+ deps.diag.log('audio.session', {
115
+ category: info.category, mode: info.mode, options: info.options, sampleRate: info.sampleRate,
116
+ route: info.inputs[0]?.type, inputs: info.inputs,
117
+ });
118
+ if (!RECORD_CATEGORIES.includes(info.category)) {
119
+ deps.diag.log('audio.session.warning', { category: info.category, expected: RECORD_CATEGORIES });
120
+ }
121
+ }
122
+
123
+ cleanup.push(deps.session.onInterruption((e) => {
124
+ if (!active) return;
125
+ deps.diag.log('audio.interruption', e);
126
+ if (e.type === 'began') deps.onInterrupted('interruption');
127
+ }));
128
+ cleanup.push(deps.session.onRouteChange((e) => {
129
+ if (!active) return;
130
+ deps.diag.log('audio.route', e);
131
+ if (!deps.driver.status().isRecording) deps.onInterrupted('route-change');
132
+ }));
133
+ cleanup.push(deps.poll(() => {
134
+ const db = deps.driver.status().metering;
135
+ if (typeof db === 'number') {
136
+ tracker.push(db);
137
+ onLevel(db);
138
+ }
139
+ }, POLL_MS));
140
+ },
141
+
142
+ async stop(): Promise<StoppedRecording> {
143
+ active = false;
144
+ release();
145
+ const before = deps.driver.status();
146
+ await deps.driver.stop();
147
+ const uri = before.url ?? deps.driver.status().url ?? '';
148
+ const bytes = await settledSize(uri);
149
+ if (bytes === 0) deps.diag.log('audio.empty-file', { uri });
150
+ const levels = tracker.summary();
151
+ return { uri, durationMs: before.durationMillis, bytes, peakDb: levels.peakDb, rmsDb: levels.rmsDb };
152
+ },
153
+ };
154
+ }
@@ -0,0 +1,40 @@
1
+ import type { QueuedUpload } from '@startsimpli/utils';
2
+
3
+ export interface RecordingFile {
4
+ uri: string;
5
+ bytes: number;
6
+ }
7
+
8
+ /** Same file name -> same id, in the charset and length the server accepts. */
9
+ function idFor(uri: string): string {
10
+ const stem = (uri.split('/').pop() ?? '').replace(/\.m4a$/i, '').replace(/[^A-Za-z0-9_-]/g, '-');
11
+ return (stem.length >= 8 ? stem : `orphan-${stem}`).slice(0, 64);
12
+ }
13
+
14
+ /**
15
+ * The app was killed mid-recording (or between STOP and queueing): any recording
16
+ * file left in the documents dir that is not being recorded now is queued.
17
+ * Idempotent - the id comes from the file name, and the queue dedupes by id.
18
+ */
19
+ export async function recoverOrphans(deps: {
20
+ list(): Promise<RecordingFile[]>;
21
+ enqueue(job: QueuedUpload): Promise<unknown>;
22
+ log: (event: string, fields?: Record<string, unknown>) => void;
23
+ isActive?: (uri: string) => boolean;
24
+ }): Promise<{ recovered: number; skipped: number }> {
25
+ let recovered = 0;
26
+ let skipped = 0;
27
+ for (const file of await deps.list()) {
28
+ if (!/\.m4a$/i.test(file.uri) || deps.isActive?.(file.uri)) continue;
29
+ const id = idFor(file.uri);
30
+ if (file.bytes <= 0) {
31
+ skipped += 1;
32
+ deps.log('orphan.skipped', { id, uri: file.uri, bytes: file.bytes });
33
+ continue;
34
+ }
35
+ deps.log('orphan.recovered', { id, uri: file.uri, bytes: file.bytes });
36
+ await deps.enqueue({ id, uri: file.uri, durationMs: 0 });
37
+ recovered += 1;
38
+ }
39
+ return { recovered, skipped };
40
+ }
@@ -0,0 +1,65 @@
1
+ import { TokenAuthClient, type TokenStorage } from '@startsimpli/auth/token';
2
+
3
+ export type SecretStore = TokenStorage;
4
+ export type SessionState = 'unknown' | 'signedOut' | 'signedIn';
5
+
6
+ /**
7
+ * Tandem sign-in on the shared token client. Only the refresh token is kept
8
+ * (in the Keychain); the password is used once and never stored. A failed
9
+ * refresh clears everything and flips to signedOut (the sign-in screen).
10
+ */
11
+ export function createSession(deps: { centralUrl: string; storage: SecretStore; fetch?: typeof fetch; /** The app slug central auth knows (default 'tandem'). */ app?: string }) {
12
+ const auth = new TokenAuthClient({
13
+ apiBaseUrl: deps.centralUrl,
14
+ storage: deps.storage,
15
+ fetch: deps.fetch,
16
+ app: deps.app ?? 'tandem',
17
+ });
18
+ let state: SessionState = 'unknown';
19
+ const listeners = new Set<(s: SessionState) => void>();
20
+ const set = (next: SessionState) => {
21
+ if (next === state) return;
22
+ state = next;
23
+ listeners.forEach((l) => l(state));
24
+ };
25
+
26
+ return {
27
+ getState: () => state,
28
+ subscribe(listener: (s: SessionState) => void) {
29
+ listeners.add(listener);
30
+ return () => { listeners.delete(listener); };
31
+ },
32
+ async signIn(email: string, password: string) {
33
+ try {
34
+ await auth.login(email, password);
35
+ } catch (e) {
36
+ set('signedOut');
37
+ throw e;
38
+ }
39
+ set('signedIn');
40
+ },
41
+ async restore() {
42
+ if (!(await deps.storage.getRefreshToken())) return set('signedOut');
43
+ try {
44
+ await auth.refreshToken();
45
+ set('signedIn');
46
+ } catch {
47
+ // Rejected by the server -> the shared client cleared the token: sign in again.
48
+ // Network failure -> the token is intact: stay signed in, uploads queue until online.
49
+ set((await deps.storage.getRefreshToken()) ? 'signedIn' : 'signedOut');
50
+ }
51
+ },
52
+ async signOut() {
53
+ await auth.logout();
54
+ set('signedOut');
55
+ },
56
+ async authorizedFetch(url: string, init?: RequestInit) {
57
+ try {
58
+ return await auth.authorizedFetch(url, init);
59
+ } catch (e) {
60
+ if (!(await deps.storage.getRefreshToken())) set('signedOut');
61
+ throw e;
62
+ }
63
+ },
64
+ };
65
+ }
@@ -0,0 +1,4 @@
1
+ /** The words the recording path itself shows. The app keeps its own strings for everything else. */
2
+ export const STRINGS = {
3
+ micStartFailed: 'Could not start the microphone. Close other apps using it and try again.',
4
+ } as const;