Turbo1123/turbometa-rayban-ai
About
World's First Full-Chinese Ray-Ban Meta AI Assistant
AI & Machine LearningMeasured star growth
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +3
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README_EN.md
OriginalTurboMeta - RayBan Meta Smart Glasses AI Assistant
Disclaimer: This is an open-source project providing source code only for developers to learn and study. We do NOT provide any pre-built binaries for download, do NOT support any method of bypassing official app store distribution, and will NOT respond to any inquiries related to unofficial distribution or sideloading. iOS users should build the project using Xcode following standard Apple development workflows. This project strictly complies with all terms of the Apple Developer Program License Agreement.
🎉 Major Update v2.0.0
🔗 OpenClaw Integration + Meta Ray-Ban Display Support
Voice chat, photo recognition, OpenClaw AI assistant — your glasses, connected to everything!
✅ iOS v2.0.0 | 📱 Android v1.5.0
☕ Enjoying this project? Buy me a coffee to support development!
🆕 v2.0 New Features
- 🔗 OpenClaw Integration: Connect your glasses to OpenClaw AI assistant — snap photos & voice chat 👉 Setup Guide
- 🕶️ Meta Ray-Ban Display Support: Added support for Meta Ray-Ban Display glasses (DAT SDK v0.5.0)
- 🎙️ Real-time Speech Recognition: OpenClaw chat supports Alibaba Fun-ASR voice-to-text
- 🛡️ Stability Improvements: Fixed memory leaks and thread safety issues
🎯 Core Features
- 🔗 OpenClaw AI Assistant: Connect to OpenClaw Gateway, chat with AI using glasses photos 👉 Setup Guide
- 🎬 RTMP Live Streaming: Stream to any RTMP platform — YouTube, Twitch, Bilibili, Douyin, TikTok, Facebook Live, etc.
- 👁️ Quick Vision: Siri voice activation - identify objects without unlocking your phone
- 🤖 Live AI: Real-time multimodal AI conversation via glasses camera and microphone
- 🍽️ LeanEat: Take a photo to get nutrition analysis and health scores
🌐 Multi-Language & Multi-Platform
- 🌐 Bilingual Interface: Full English and Chinese UI support with easy switching
- 🔌 OpenRouter Support: Access 500+ AI models including GPT-5, Claude 4.5, Gemini 3, and more
- 🎙️ Google Gemini Live: Live AI now supports Google Gemini real-time voice chat (requires non-China network)
- 🌏 Alibaba Multi-Region: Support for Beijing (China mainland) and Singapore (International) endpoints
- 🔑 Independent API Key Management: Separate API keys for different providers and regions
📱 Quick Vision
🚀 Background Wake-up + Siri Voice Trigger!
No need to unlock your phone - just say a word and let AI identify everything in front of you
Due to Meta DAT SDK limitations, the app cannot directly access the glasses camera in the background. We innovatively combined Siri Shortcuts + App Intent + Alibaba Cloud TTS to achieve this feature:
- 📱 Siri Voice Wake-up: Just say "Hey Siri, TurboMeta Quick Vision"
- ⌚ Action Button Trigger (iPhone 15 Pro+): One-tap Quick Vision
- 🔊 Voice Result Announcement: High-quality TTS powered by qwen3-tts-flash
- 🎯 Fully Automated: Start stream → Capture → Stop stream → AI Recognition → TTS Announcement
🎨 Interface Preview
| 首页 Home |
对话记录 Live AI |
拍摄页面 Camera |
设置页面 Settings |
![]() |
![]() |
![]() |
![]() |
🎬 Video Demo
💡 If you find this project helpful, consider buying me a coffee ☕
📥 Get the Source Code
⚠️ Note: This is an open-source project. The iOS version provides source code only — users should build the project using Xcode following standard Apple development workflows. Android users can download the APK from the Releases page.
⚠️ Important: Enable Meta DAT SDK Preview Mode First!
Before using TurboMeta, you MUST enable DAT SDK Preview Mode in Meta View App (this is unrelated to iOS Developer Mode):
- Update RayBan Meta glasses firmware to version 20+ (required for DAT SDK)
- Update Meta View App to the latest version
- Open Meta View App (or Meta AI App) on your phone
- Go to Settings → App Info
- Find Version Number
- Tap the version number 5 times rapidly
- A confirmation message will appear
This is required by Meta Wearables DAT SDK (currently in Preview). See Meta's official documentation for details.
🍎 iOS — Build from Source
✅ Supports bilingual UI, OpenRouter, Gemini, RTMP streaming, OpenClaw integration
⚠️ We do NOT provide pre-built binaries (IPA) for download. Please build from source using Xcode.
Step 1: Register with Meta Wearables
- Go to Meta Wearables Developer Center
- Sign up and log in
- Click Projects → Create Project
- Go to App configuration page
- Under Application ID integration → iOS integration, copy
MetaAppIDandClientToken - Open
CameraAccess/Info.plistand fill in your values underMWDAT:
<key>MWDAT</key>
<dict>
<key>AppLinkURLScheme</key>
<string>turbometa://</string>
<key>MetaAppID</key>
<string>YOUR_META_APP_ID</string>
<key>ClientToken</key>
<string>YOUR_CLIENT_TOKEN</string>
<key>TeamID</key>
<string>$(DEVELOPMENT_TEAM)</string>
</dict>
Step 2: Build and Run
- Open
CameraAccess.xcodeprojwith Xcode 15.0+ - Select your Apple ID and Team in Signing & Capabilities
- Connect your iPhone, click Run
- Configure your Alibaba Cloud API Key in Settings 👉 See Configuration Guide
📱 Android
⚠️ Android is currently at v1.5.0 and does not yet include v2.0 features (OpenClaw, Meta Ray-Ban Display).
Installation:
- Download the APK file
- Enable "Install from unknown sources" in Settings
- Open APK to install
- Grant permissions (Bluetooth, Microphone)
- Configure API Key in Settings 👉 See Configuration Guide
📖 Introduction
TurboMeta is a full-featured multimodal AI assistant built exclusively for RayBan Meta smart glasses, powered by Alibaba Cloud's Qwen multimodal AI models:
- 🎯 Live AI Conversations: Real-time multimodal interaction through glasses camera and microphone
- 🍎 Smart Nutrition Analysis: Capture food photos and get detailed nutritional information and health recommendations
- 👁️ Image Recognition: Intelligently identify objects, scenes, and text in your field of view
- 🎥 Live Streaming: Stream directly to platforms like Douyin, Kuaishou, and Xiaohongshu
- 🌐 Full Chinese Support: Complete Chinese AI interaction experience, perfectly tailored for Chinese users
This is the world's first fully Chinese-enabled RayBan Meta AI assistant, bringing the convenience of smart glasses to Chinese-speaking users.
✨ Core Features
👁️ Quick Vision NEW
- Siri Wake-up: Voice-triggered recognition without unlocking your phone
- Shortcuts Integration: Supports iOS Shortcuts automation
- Action Button Support: One-tap trigger on iPhone 15 Pro series
- High-quality TTS: Voice announcement powered by qwen3-tts-flash
- Smart Recognition: Based on qwen3-vl-plus multimodal visual understanding
🤖 Live AI - Real-time Conversations
- Multimodal Interaction: Simultaneous voice and visual input support
- Real-time Response: Based on Qwen Omni-Realtime model with low-latency voice conversations
- Scene Understanding: AI can see what's in front of you and provide relevant suggestions
- Natural Responses: Smooth and natural Chinese conversation experience
- One-tap Hide: Support for hiding conversation interface to focus on visual experience
🍽️ LeanEat - Smart Nutrition Analysis
- Food Recognition: Identify food types by taking photos
- Nutritional Content: Detailed data on calories, protein, fat, carbohydrates, etc.
- Health Scoring: Health scoring system from 0-100
- Nutrition Advice: Personalized nutritional recommendations from AI
- Beautiful Interface: Carefully designed UI with clear nutritional information display
📸 Real-time Photography
- Auto-start: Automatically connects to glasses and starts preview when opened
- Multi-function Integration: Choose nutrition analysis or AI recognition after taking photos
- Smooth Experience: Real-time video stream preview
🎥 Live Streaming
- Platform Support: Compatible with mainstream live streaming platforms
- Clean Interface: Pure view focused on streaming content
🛠️ Tech Stack
iOS
- Platform: iOS 17.0+
- Language: Swift 5.0 + SwiftUI
- SDK: Meta Wearables DAT SDK v0.5.0
- Architecture: MVVM + Combine
- Audio: AVAudioEngine + AVAudioPlayerNode
Android
- Platform: Android 8.0+ (API 26)
- Language: Kotlin 1.9 + Jetpack Compose
- SDK: Meta Wearables DAT SDK v0.4.0
- Architecture: MVVM + StateFlow
- UI: Material 3 Design
AI Models
- Qwen Omni-Realtime: Real-time multimodal conversations
- Qwen VL-Plus: Visual understanding and image analysis
- Qwen TTS-Flash: High-quality Chinese text-to-speech
📋 Requirements
Hardware Requirements
- ✅ Ray-Ban Meta Smart Glasses or Meta Ray-Ban Display (newly supported)
- ✅ iPhone (iOS 17.0+) or Android phone (8.0+)
- ✅ Stable internet connection
Software Requirements
- ✅ Meta View App / Meta AI App (for pairing glasses)
- ✅ Alibaba Cloud account (for API access)
- ✅ Xcode 15.0+ (iOS development)
- ✅ Android Studio (Android development)
API Requirements
You need to apply for the following Alibaba Cloud APIs:
- Qwen Omni-Realtime API: For real-time conversations
- Qwen VL-Plus API: For image recognition and nutrition analysis
👉 Apply for APIs at Alibaba Cloud Model Studio | Model Studio Console
🚀 Installation Guide
Step 1: Enable Meta DAT SDK Preview Mode
⚠️ Important: Since the Meta Wearables DAT SDK is currently in Preview, you must enable Preview Mode in Meta View App (this is unrelated to iOS Developer Mode).
- Open Meta View App (or Meta AI App) on your iPhone
- Go to Settings → App Info or About
- Find Version Number
- Tap the version number 5 times consecutively
- A confirmation message will appear
Step 2: Configure API Key
For detailed configuration guide, see 👉 API Key Configuration
Quick steps:
- Visit Alibaba Cloud Model Studio to register
- Login to Model Studio Console → API-KEY Management → Create API Key
- Enter your API Key in App "Settings" → "API Key Management"
- International users: Select Singapore region in "Settings" for better connectivity
Step 3: Build the Project
- Open
CameraAccess.xcodeprojwith Xcode - Select your development team (Team)
- Modify Bundle Identifier (if needed)
- Connect your iPhone
- Click Run or press
Cmd + R
Step 4: Pair Your Glasses
- Open Meta View App
- Pair your RayBan Meta glasses
- Ensure Bluetooth is enabled
- Return to TurboMeta App and wait for connection success
📱 Usage Guide
First-time Use
- Launch TurboMeta App
- Ensure RayBan Meta glasses are paired and turned on
- Wait for device connection (status shown at top)
- Select the feature you want to use
Live AI Real-time Conversations
- Tap the Live AI card on the home screen
- Wait for connection success (green dot in upper right)
- Start speaking, AI will respond in real-time
- AI can see what's in front of you
- Tap the 👁️ button to hide conversation history
Tips:
- Speak clearly and maintain appropriate distance
- Ask "What do you see?" to have AI describe the scene
- AI responds in concise Chinese
⚠️ International Users: In Settings → API Key Management, select Singapore region for Live AI. This uses the international WebSocket endpoint (
wss://dashscope-intl.aliyuncs.com) for better connectivity outside China mainland.
LeanEat Nutrition Analysis
- Tap the LeanEat card on the home screen
- Point at food and tap the camera button 📷
- In photo preview, tap Nutrition Analysis
- Wait for AI analysis to complete
- View nutritional content, health score, and recommendations
Use Cases:
- Take photos before meals to understand nutritional content
- Track daily intake when on a fitness diet
- Learn about food nutrition
Live Streaming
- Tap the Live Stream card on the home screen
- Wait for video stream to start
- Create your streaming content
- Tap stop button to end the stream
👁️ Quick Vision Tutorial
Quick Vision allows you to quickly identify objects in front of you through Siri or Shortcuts without unlocking your phone.
📋 Prerequisites
- ✅ TurboMeta App installed and API Key configured
- ✅ RayBan Meta glasses paired and turned on
- ✅ Open TurboMeta App once for first-time initialization
🔧 Setting Up Shortcuts
Method 1: Siri Voice Trigger
- Open the Shortcuts app on iPhone
- Tap + in the top right to create a new shortcut
- Tap Add Action
- Search for TurboMeta or Turbo Meta
- Select Quick Vision action
- Tap the shortcut name at the top to rename it (e.g., "Quick Vision", "What's This")
- Tap Done to save
How to Use:
- Say "Hey Siri, Quick Vision" (or your custom shortcut name)
- AI will automatically capture, recognize, and announce the result
📸 Click to view setup screenshots
- Search for TurboMeta in Shortcuts app
- Add "Quick Vision" action
- Rename the shortcut
Method 2: iPhone 15 Pro Action Button
If you have iPhone 15 Pro / 15 Pro Max / 16 series, you can bind Quick Vision to the Action Button:
- Open Settings → Action Button
- Select Shortcut
- Choose your TurboMeta Quick Vision shortcut
- Done!
How to Use:
- Long press the Action Button to trigger Quick Vision
- No need to unlock your phone - works while wearing glasses
Method 3: Lock Screen Widget
- Long press on the lock screen to enter edit mode
- Tap Customize
- Add Shortcuts widget to the lock screen widget area
- Select TurboMeta Quick Vision shortcut
- Tap Done
How to Use:
- Tap the widget directly on the lock screen to trigger
🎯 Quick Vision Workflow
Siri/Shortcut Trigger
↓
Start Video Stream
↓
Auto Capture Photo
↓
Stop Video Stream
↓
AI Image Recognition (qwen3-vl-plus)
↓
TTS Voice Announcement (qwen3-tts-flash)
💡 Tips
- Ensure glasses are on: Make sure glasses aren't in the charging case
- Stay steady: Keep your head stable while capturing
- Good lighting: Better recognition in well-lit environments
- Wait for announcement: Recognition takes a few seconds, wait patiently for voice announcement
⚠️ Troubleshooting
Q: Why does it say "Glasses not connected"?
- Ensure glasses are on and paired with Meta View App
- Make sure Meta DAT SDK Preview Mode is enabled in Meta View App
- Try reopening TurboMeta App
Q: Why is there no sound?
- Check if phone is on silent mode
- Check Bluetooth audio output settings
- TTS requires network connection (Alibaba Cloud service)
Q: Can't find TurboMeta in Shortcuts?
- Open TurboMeta App at least once after installation
- Try restarting your phone
⚙️ Configuration Options
API Configuration
Configure in VisionAPIConfig.swift:
struct VisionAPIConfig {
// Alibaba Cloud API Key
static let apiKey = "sk-YOUR-API-KEY-HERE"
// API Base URL (usually doesn't need modification)
static let baseURL = "https://dashscope.aliyuncs.com"
}
System Prompts
Customize AI response style in OmniRealtimeService.swift:
"instructions": "You are a RayBan Meta smart glasses AI assistant. Keep answers concise and conversational..."
🔧 Troubleshooting
Q1: Glasses won't connect?
Solutions:
- Ensure glasses are successfully paired in Meta View App
- Check if Bluetooth is enabled
- Restart TurboMeta App
- Restart glasses (place in charging case)
- Ensure Meta DAT SDK Preview Mode is enabled in Meta View App
Q2: AI not responding or responding slowly?
Solutions:
- Check if internet connection is stable
- Verify API Key is correctly configured
- Check if Alibaba Cloud API quota is sufficient
- Review console logs for errors
Q3: Nutrition analysis results inaccurate?
Solutions:
- Ensure food photos are clear
- Take photos in good lighting
- Show food completely in frame
- AI analysis is for reference only, not a substitute for professional nutritionists
Q4: Xcode build fails or cannot run on device?
Solutions:
- Ensure your iPhone is registered as a development device in Xcode
- Verify your signing configuration in Xcode → Signing & Capabilities
- Change the Bundle Identifier in Xcode project settings to avoid conflicts
- Ensure you are signed in with a valid Apple ID in Xcode → Settings → Accounts
Q5: Voice recognition inaccurate?
Solutions:
- Ensure environment is relatively quiet
- Speak clearly at moderate speed
- Don't obstruct the microphone
- Currently optimized for Chinese, other languages may be less accurate
🔗 OpenClaw Integration
TurboMeta supports connecting to OpenClaw — an open-source personal AI assistant. Through OpenClaw, you can snap photos with your glasses and have AI analyze them, or use voice-to-text to chat with AI.
Features
- 📷 Photo Capture: One-tap to capture glasses view and send to OpenClaw AI
- 🎙️ Voice Transcription: Real-time speech-to-text via Alibaba Fun-ASR, auto-sent to AI
- ⌨️ Text Chat: Type messages directly to AI
- 🔄 Auto-connect: Saved configuration auto-connects on launch
⚠️ Due to Meta DAT SDK limitations, the glasses camera cannot be accessed in the background. Use the photo capture feature while the app is in the foreground.
Setup
1. Install and Start OpenClaw
curl -fsSL https://openclaw.ai/install.sh | bash
openclaw gateway install
2. Configure Gateway for LAN Access
Edit ~/.openclaw/openclaw.json:
{
"gateway": {
"bind": "lan",
"nodes": {
"allowCommands": ["camera.snap", "camera.clip", "camera.list", "device.status", "device.info"]
}
}
}
Then restart: openclaw gateway restart
3. Connect from App
- Open TurboMeta → Settings → OpenClaw
- Enter Gateway address (e.g.,
192.168.1.100) and port (18789) - Enter Gateway Token (found in the OpenClaw Dashboard URL)
- Tap Connect
First connection requires device pairing approval:
openclaw devices list # View pending devices
openclaw devices approve # Approve pairing
4. Remote Access (Optional)
For accessing Gateway outside your LAN, use Tailscale:
- Install Tailscale on both the Gateway machine and your phone
- Log in with the same Tailscale account on both devices
- In the app, use the Tailscale-assigned IP (e.g.,
100.x.x.x:18789)
Tailscale creates an encrypted peer-to-peer tunnel — no public ports needed.
🔒 Privacy and Security
- ✅ All audio/video data is only used for AI processing
- ✅ No storage or upload of user privacy data
- ✅ API communications use HTTPS encryption
- ✅ Images and voice are retained only during session
- ✅ Follows industry best practices for data handling
🗺️ Roadmap
✅ Completed
- Live AI real-time conversations
- LeanEat nutrition analysis
- Image recognition
- Basic live streaming functionality
- Bilingual Chinese/English support
- Conversation history saving
- One-tap hide conversations
- Android version released 🎉
- Quick Vision 🆕
- Siri Shortcuts integration
- App Intent support
- Alibaba Cloud TTS voice announcement
- iPhone Action Button support
🚧 In Progress
- Improve multilingual support
- Optimize UI/UX
- Performance optimization
📅 Planned
- Real-time translation feature
- WordLearn vocabulary learning
- Cloud conversation sync
- More live streaming platform support
- Offline mode
- Apple Watch companion app
- Android Quick Vision support
🤝 Contributing
Contributions, bug reports, and feature suggestions are welcome!
- Fork this project
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
📄 License
This project is based on modifications of original code from Meta Platforms, Inc. and follows the original project's license.
Some code copyright belongs to Meta Platforms, Inc. and its affiliates.
Please see LICENSE file for details.
🙏 Acknowledgments
- Meta Platforms, Inc. - For providing DAT SDK and original sample code
- Alibaba Cloud Qwen Team - For powerful multimodal AI capabilities
- RayBan - For excellent smart glasses hardware
🚀 How to Open Source This Project
1. Create GitHub Repository
# Create a new repository on GitHub website
# Then execute in your project directory:
git init
git add .
git commit -m "Initial commit: TurboMeta - RayBan Meta AI Assistant"
git branch -M main
git remote add origin https://github.com/your-username/your-repo.git
git push -u origin main
2. Protect Sensitive Information
✅ Security Measures Implemented:
- API Keys are no longer hardcoded in the source code
- Uses iOS Keychain for secure storage of user API Keys
- Users configure their own API Keys in the App Settings
⚠️ Pre-release Checklist:
# Search for potential sensitive information
grep -r "sk-" .
grep -r "API" . | grep -i "key"
3. Add .gitignore File
Create a .gitignore file in project root:
# Xcode
build/
*.pbxuser
*.mode1v3
*.mode2v3
*.perspectivev3
xcuserdata/
*.xccheckout
*.moved-aside
DerivedData/
*.hmap
*.xcuserstate
*.xcworkspace
# API Keys (extra protection)
**/*APIKey*.swift
**/APIKeys.swift
**/*Secret*.swift
# macOS
.DS_Store
4. Choose Open Source License
This project is based on Meta DAT SDK sample code and follows the original project's license. You can:
- Keep the same license as Meta's original project
- Choose MIT, Apache 2.0, or other permissive licenses for your code
- Acknowledge the original source code in the LICENSE file
5. User Configuration Instructions
⚠️ Important Notice: Users need to configure Alibaba Cloud API Key:
Step 1: Register Alibaba Cloud Account
Visit Alibaba Cloud Model Studio to register
Step 2: Get API Key
- Login to Model Studio Console
- Find "API-KEY Management" in the left menu
- Click "Create API Key" to generate a key
- Copy the generated API Key
Step 3: Configure in App
- Open TurboMeta App
- Go to "Settings" → "API Key Management"
- Paste your API Key and save
🔒 Security Note: API Key is stored in iOS Keychain and Android EncryptedSharedPreferences, never exposed
🌟 If This Project Helps You
- ⭐️ Star the project
- 🐛 Report bugs or suggest features
- 🔀 Fork and contribute code
- 📢 Share with others
☕ Support the Project
If this project helps you, consider supporting development! Your support keeps this project alive and growing.
Why support?
- 🚀 Help fund new features and updates
- 🐛 Support ongoing bug fixes and maintenance
- 🌍 Enable more language support
- ❤️ Show appreciation for open source work
Making Smart Glasses Smarter 🕶️
Made with ❤️ for RayBan Meta Users Worldwide
Explore related projects
Loading…




