js+css使用chatgpt打造一个浏览器运行的语音交互的智能ai语音助手代码
代码语言:html
所属分类:其他
代码描述:js+css使用chatgpt打造一个浏览器运行的语音交互的智能ai语音助手代码,在edge浏览器中打开,点击麦克风图标,开始询问问题,然后等待ai语音回复您。
代码标签: js css chatgpt 浏览器 运行 语音 交互 智能 ai 语音 助手 代码
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<link type="text/css" rel="stylesheet" href="//repo.bfw.wiki/bfwrepo/css/all.6.0.css">
<link href="https://fonts.googleapis.com/css2?family=Lato&family=Roboto&display=swap" rel="stylesheet" />
<style>
body {
align-items: center;
background-color: #eee;
display: flex;
height: 100vh;
justify-content: center;
margin: 0;
}
.a11y-hidden {
position: absolute;
left: -1000in;
width: 1px;
height: 1px;
overflow: hidden;
clip-path: polygon(0 0, 0 0);
}
.search {
width: 90%;
max-width: 30rem;
position: relative;
}
.search .input-bar {
--active: #eee;
align-items: center;
background: #fff;
border: 2px solid #0000;
border-radius: 4rem;
box-sizing: border-box;
box-shadow: 0 1rem 2rem -1.5rem #0005;
display: inline-flex;
height: 4rem;
overflow: hidden;
transition: box-shadow 0.5s;
width: 100%;
}
.search .input-bar:focus-within {
background: #fffffc;
border: 2px solid #444;
box-shadow: 0 1rem 2rem -1.5rem #0007;
}
.search .input-bar:hover {
box-shadow: 0 1rem 2rem -1.5rem #0007;
}
.search .input-bar label {
position: absolute;
color: #888;
left: 1.625rem;
font-family: Lato, Arial, sans-serif;
font-size: 1.25rem;
white-space: nowrap;
text-overfl.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0