File size: 4,377 Bytes
babeaf6
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
<!DOCTYPE html>
<html>

<head>
  <title>RealChar. - Realtime AI Character</title>
  <link rel="stylesheet" type="text/css" href="/static/styles.css">
  <link rel="icon" type="image/png" href="/static/favicon.ico">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <script defer src="https://use.fontawesome.com/releases/v5.0.13/js/all.js" integrity="sha384-xymdQtn1n3lH2wcu0qhcdaOpQwyoarkgLVxC/wZ5q7h9gHtxICrpcaSUfygqZGOe" crossorigin="anonymous"></script>
</head>

<body>
  <div class="logo-container">
    <img alt="Logo" src="/static/logo.svg" />
  </div>

  <!-- Mobile warning message -->
  <div id="mobile-warning">
    <p>This website is best viewed on a desktop browser.</p> 
    <p>Please switch to a desktop for the best experience.</p> 
    <p>Mobile version is coming soon!</p>
    <p>If you have an iOS device, you can test our <a href='https://testflight.apple.com/join/JA6p9sZQ' style="color: green;">iOS beta app</a>.</p>
    </div>


  <!-- Desktop content -->
  <div id="desktop-content">
    <!-- Audio device selection -->
    <p class="alert"> Please wear headphone 🎧 <span id="recording" class="recording">Recording</span> </p>
    <div id="devices-container" class="devices-container">
      <label class="audio-device-label" for="audio-device-selection">Select an audio input device:</label>
      <div class="select-dropdown">
        <select id="audio-device-selection" class="form-select"></select>
      </div>
    </div>

    <div class="header">
      <p></p>
    </div>
    <button id="connect" class="connect">Connect</button>
    
    <!-- Characters List -->
    <div class="main-container">
      <div class="radio-buttons">
        <!-- this part will be dynamically rendered -->
      </div>
    </div>
    <div class="actions">
      <button id="talk-btn" class="talk-btn" disabled>Talk</button>
      <button id="text-btn" class="text-btn" disabled>Text</button>
    </div>
    
    
    <div class="main-screen">
      <div id="player-container" class="player-container">
        <div id="sound-wave" class="sound-wave">
          <span></span>
          <span></span>
          <span></span>
          <span></span>
          <span></span>
          <span></span>
        </div>
        <audio id="audio-player" class="audio-player">
          <source src="" type="audio/mp3">
        </audio>
      </div>
      <textarea id="chat-window" class="chat-window" readonly draggable="false"></textarea>
    </div>
    </div>
    <div class="action-container">
      <div id="stop-call" class="stop-call">
        <img src="/static/end-call.svg" alt="End call icon" class="icon-instance-node"/>
      </div>
      <div id="continue-call" class="continue-call">
        <img src="/static/continue-call.svg" alt="Continue call icon" class="icon-instance-node"/>
      </div>
      <div class="message-input-container">
        <input id="message-input" class="message-input" type="text" placeholder="Type your message">
        <span class="focus-border">
          <i></i>
        </span>
      </div>
      <button id="send-btn" class="send-btn">Send Message</button>
    </div>

    <div class="options-container">
      <div id="disconnect" class="disconnect">
        <img src="/static/connect.svg" alt="Connect Icon" class="icon-instance-node-small" />
      </div>
      <div id="message" class="message">
        <img src="/static/message.svg" alt="Message Icon" class="icon-instance-node-small" />
      </div>
      <div id="call" class="call">
        <img src="/static/microphone.svg" alt="Connect Icon" class="icon-instance-node-small" />
      </div>
    </div>  
  </div>

  <footer>
    <div class="rounded-social-buttons">
      <a class="social-button github" href="https://github.com/Shaunwei/RealChar" target="_blank"><i class="fab fa-github"></i></a>
      <a class="social-button discord" href="https://discord.gg/e4AYNnFg2F" target="_blank"><i class="fab fa-discord"></i></a>
      <a class="social-button twitter" href="https://twitter.com/agishaun" target="_blank"><i class="fab fa-twitter"></i></a>
    </div>
    <p class="copyright">Copyright © 2023 RealChar. All rights reserved. This site is for demo purpose only. Any AI character's statements are fictional and don't represent actual beliefs or opinions. </p>
  </footer>

  <script src="/static/script.js"></script>
</body>

</html>