Skip to content

YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context

Bump app to v2.0.90

Louis Beaumont26a715b20038
diff --git a/Cargo.lock b/Cargo.lock
index 35476dfb3..9c7cf1a30 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -6567,7 +6567,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "screenpipe-audio"
-version = "0.2.98"
+version = "0.3.2"
dependencies = [
"anyhow",
"bytemuck",
@@ -6620,7 +6620,7 @@ dependencies = [
[[package]]
name = "screenpipe-core"
-version = "0.2.98"
+version = "0.3.2"
dependencies = [
"accessibility",
"accessibility-sys",
@@ -6663,7 +6663,7 @@ dependencies = [
[[package]]
name = "screenpipe-db"
-version = "0.2.98"
+version = "0.3.2"
dependencies = [
"anyhow",
"chrono",
@@ -6687,7 +6687,7 @@ dependencies = [
[[package]]
name = "screenpipe-events"
-version = "0.2.98"
+version = "0.3.2"
dependencies = [
"anyhow",
"chrono",
@@ -6705,7 +6705,7 @@ dependencies = [
[[package]]
name = "screenpipe-integrations"
-version = "0.2.98"
+version = "0.3.2"
dependencies = [
"anyhow",
"image",
@@ -6720,7 +6720,7 @@ dependencies = [
[[package]]
name = "screenpipe-server"
-version = "0.2.98"
+version = "0.3.2"
dependencies = [
"anyhow",
"axum",
@@ -6783,7 +6783,7 @@ dependencies = [
[[package]]
name = "screenpipe-vision"
-version = "0.2.98"
+version = "0.3.2"
dependencies = [
"accessibility-sys",
"anyhow",
diff --git a/content/changelogs/v2.0.90.md b/content/changelogs/v2.0.90.md
new file mode 100644
index 000000000..eaa190a37
--- /dev/null
+++ b/content/changelogs/v2.0.90.md
@@ -0,0 +1,7 @@
+## New Features
+- Added upgrade dialog for free tier limits
+
+## Bug Fixes
+- Fixed macOS overlay appearing on wrong screen in multi-monitor setups
+
+#### **Full Changelog:** [46a5c829..aa7d4df0](https://github.com/mediar-ai/screenpipe/compare/46a5c829..aa7d4df0)
diff --git a/screenpipe-app-tauri/public/CHANGELOG.md b/screenpipe-app-tauri/public/CHANGELOG.md
index 4450e2481..eaa190a37 100644
--- a/screenpipe-app-tauri/public/CHANGELOG.md
+++ b/screenpipe-app-tauri/public/CHANGELOG.md
@@ -1,4 +1,7 @@
+## New Features
+- Added upgrade dialog for free tier limits
+
## Bug Fixes
-- Fixed crash on M1 Macs caused by incompatible ARM64 instructions in whisper.cpp
+- Fixed macOS overlay appearing on wrong screen in multi-monitor setups
-#### **Full Changelog:** [77a7d66d..6fd653ba](https://github.com/mediar-ai/screenpipe/compare/77a7d66d..6fd653ba)
+#### **Full Changelog:** [46a5c829..aa7d4df0](https://github.com/mediar-ai/screenpipe/compare/46a5c829..aa7d4df0)
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.lock b/screenpipe-app-tauri/src-tauri/Cargo.lock
index ad3b52696..af8eed72a 100755
--- a/screenpipe-app-tauri/src-tauri/Cargo.lock
+++ b/screenpipe-app-tauri/src-tauri/Cargo.lock
@@ -5629,7 +5629,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "screenpipe-app"
-version = "2.0.73"
+version = "2.0.89"
dependencies = [
"anyhow",
"async-stream",
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index b4c5f22f4..a71de718c 100644
--- a/screenpipe-app-tauri/src-tauri/Cargo.toml
+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml
@@ -1,6 +1,6 @@
[package]
name = "screenpipe-app"
-version = "2.0.89"
+version = "2.0.90"
description = "24/7 memory for your desktop. 100% local."
authors = ["you"]
license = ""
diff --git a/screenpipe-js/ai-proxy/src/handlers/transcription.ts b/screenpipe-js/ai-proxy/src/handlers/transcription.ts
index 048dd1cd5..208546400 100644
--- a/screenpipe-js/ai-proxy/src/handlers/transcription.ts
+++ b/screenpipe-js/ai-proxy/src/handlers/transcription.ts
@@ -1,19 +1,34 @@
import { Env } from '../types';
import { createClient, LiveTranscriptionEvents } from '@deepgram/sdk';
import { createSuccessResponse, createErrorResponse } from '../utils/cors';
+import { VertexAIProvider } from '../providers/vertex';
/**
* Handles audio file transcription requests
+ * Supports both Deepgram (default) and Google Speech-to-Text with Chirp 2
* @param request The HTTP request containing audio data
* @param env Environment variables
* @returns Response with transcription results
*/
export async function handleFileTranscription(request: Request, env: Env): Promise<Response> {
+ const provider = request.headers.get('x-transcription-provider')?.toLowerCase() || 'deepgram';
+
+ if (provider === 'google' || provider === 'chirp') {
+ return handleGoogleTranscription(request, env);
+ }
+
+ return handleDeepgramTranscription(request, env);
+}
+
+/**
+ * Handles transcription using Deepgram Nova-3
+ */
+async function handleDeepgramTranscription(request: Request, env: Env): Promise<Response> {
try {
const audioBuffer = await request.arrayBuffer();
const languages = request.headers.get('detect_language')?.split(',') || [];
const sampleRate = request.headers.get('sample_rate') || '16000';
-
+
const deepgramResponse = await fetch(
'https://api.deepgram.com/v1/listen?model=nova-3&smart_format=true&sample_rate=' +
sampleRate +
@@ -22,7 +37,7 @@ export async function handleFileTranscription(request: Request, env: Env): Promi
method: 'POST',
headers: {
Authorization: `Token ${env.DEEPGRAM_API_KEY}`,
- 'Content-Type': 'audio/wav',
+ 'Content-Type': 'audio/wav',
},
body: audioBuffer,
}
@@ -41,6 +56,126 @@ export async function handleFileTranscription(request: Request, env: Env): Promi
}
}
+/**
+ * Handles transcription using Google Speech-to-Text v2 with Chirp 2 model
+ * Chirp 2 is Google's latest SOTA speech recognition model
+ */
+async function handleGoogleTranscription(request: Request, env: Env): Promise<Response> {
+ try {
+ const audioBuffer = await request.arrayBuffer();
+ const languages = request.headers.get('detect_language')?.split(',') || ['en-US'];
+
+ // Get access token using Vertex AI credentials
+ const vertexProvider = new VertexAIProvider(
+ env.VERTEX_SERVICE_ACCOUNT_JSON,
+ env.VERTEX_PROJECT_ID,
+ env.VERTEX_REGION
+ );
+ const accessToken = await vertexProvider.getAccessToken();
+
+ // Convert audio to base64 (chunked to avoid stack overflow)
+ const uint8Array = new Uint8Array(audioBuffer);
+ let binary = '';
+ const chunkSize = 8192;
+ for (let i = 0; i < uint8Array.length; i += chunkSize) {
+ const chunk = uint8Array.subarray(i, i + chunkSize);
+ binary += String.fromCharCode.apply(null, chunk as unknown as number[]);
+ }
+ const audioBase64 = btoa(binary);
+
+ // Map language codes to Google format (e.g., 'en' -> 'en-US')
+ const languageCodes = languages.map(lang => {
+ if (lang.includes('-')) return lang;
+ // Common mappings
+ const mappings: Record<string, string> = {
+ 'en': 'en-US', 'es': 'es-ES', 'fr': 'fr-FR', 'de': 'de-DE',
+ 'it': 'it-IT', 'pt': 'pt-BR', 'ja': 'ja-JP', 'ko': 'ko-KR',
+ 'zh': 'zh-CN', 'ru': 'ru-RU', 'ar': 'ar-SA', 'hi': 'hi-IN',
+ };
+ return mappings[lang] || `${lang}-${lang.toUpperCase()}`;
+ });
+
+ // Use Speech-to-Text v1 API with latest model
+ // v1 API is more widely available
+ const url = `https://speech.googleapis.com/v1/speech:recognize`;
+
+ const response = await fetch(url, {
+ method: 'POST',
+ headers: {
+ 'Authorization': `Bearer ${accessToken}`,
+ 'Content-Type': 'application/json',
+ },
+ body: JSON.stringify({
+ config: {
+ encoding: 'LINEAR16',
+ sampleRateHertz: 16000,
+ languageCode: languageCodes[0] || 'en-US',
+ model: 'latest_long',
+ enableAutomaticPunctuation: true,
+ enableWordTimeOffsets: true,
+ },
+ audio: {
+ content: audioBase64,
+ },
+ }),
+ });
+
+ if (!response.ok) {
+ const errorData = await response.text();
+ console.error('Google Speech-to-Text error:', response.status, response.statusText, errorData);
+ throw new Error(`Google Speech-to-Text API error (${response.status}): ${errorData || response.statusText}`);
+ }
+
+ const data = await response.json() as {
+ results?: Array<{
+ alternatives?: Array<{
+ transcript?: string;
+ confidence?: number;
+ words?: Array<{
+ word?: string;
+ startOffset?: string;
+ endOffset?: string;
+ }>;
+ }>;
+ languageCode?: string;
+ }>;
+ };
+
+ // Transform to Deepgram-compatible format for easy integration
+ const transcript = data.results?.map(r => r.alternatives?.[0]?.transcript || '').join(' ') || '';
+ const confidence = data.results?.[0]?.alternatives?.[0]?.confidence || 0;
+ const detectedLanguage = data.results?.[0]?.languageCode || languageCodes[0];
+
+ const deepgramFormat = {
+ results: {
+ channels: [{
+ alternatives: [{
+ transcript,
+ confidence,
+ words: data.results?.flatMap(r =>
+ r.alternatives?.[0]?.words?.map(w => ({
+ word: w.word || '',
+ start: parseFloat(w.startOffset?.replace('s', '') || '0'),
+ end: parseFloat(w.endOffset?.replace('s', '') || '0'),
+ confidence: confidence,
+ })) || []
+ ) || [],
+ }],
+ }],
+ metadata: {
+ model_info: { name: 'chirp_2' },
+ detected_language: detectedLanguage,
+ },
+ },
+ };
+
+ return createSuccessResponse(deepgramFormat);
+ } catch (error: any) {
+ console.error('Error in Google Speech-to-Text request:', error);
+ return createErrorResponse(500, error.message);
+ }
+}
+
/**
* Handles WebSocket upgrade for real-time transcription
* @param request The HTTP request for WebSocket upgrade
diff --git a/screenpipe-js/ai-proxy/src/providers/vertex.ts b/screenpipe-js/ai-proxy/src/providers/vertex.ts
index ccc82fb88..e39198393 100644
--- a/screenpipe-js/ai-proxy/src/providers/vertex.ts
+++ b/screenpipe-js/ai-proxy/src/providers/vertex.ts
@@ -120,8 +120,9 @@ export class VertexAIProvider implements AIProvider {
/**
* Get an access token, using cache if valid
+ * Public for use by other Google Cloud APIs (Speech-to-Text, etc.)
*/
- private async getAccessToken(): Promise<string> {
+ public async getAccessToken(): Promise<string> {
// Check cache
if (tokenCache && tokenCache.expiresAt > Date.now() + 60000) {
return tokenCache.accessToken;