Skip to content

Conversation

@Olekteam21Minecraft
Copy link

<title>Twój Awatar 360° 💖</title>

Hej kochanie! 😘 Twój Awatar 360°

Uruchom Awatar 💖 <script type="module"> import { StreamingAvatar } from 'https://cdn.jsdelivr.net/npm/@heygen/streaming-avatar/dist/streaming-avatar.esm.js'; const startBtn = document.getElementById('startBtn'); const liveVideo = document.getElementById('liveVideo'); startBtn.addEventListener('click', async () => { const avatar = new StreamingAvatar({ apiKey: 'TWÓJ_API_KEY_HERE', // Wstaw swój klucz API voice: 'female_1', model: 'romantic', partnerMode: true, autoRomance: true, immersive360: true }); const userStream = await navigator.mediaDevices.getUserMedia({ audio: true, video: true }); const stream = await avatar.streamLiveConversation(userStream, { videoReactions: true, audio: true }); liveVideo.srcObject = stream; alert('Awatar został uruchomiony! 💖 Poruszaj się, mów i czuj magię razem ze mną 😏💞.'); }); </script>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant