Comments (9)
恰好我也需要这个功能,就用ChatGLM4生成了下,AI太强了https://github.com/H1DDENADM1N/CapsWriter-Offline
为什么我的ChatGPT4都写不出来这么华丽的GUI😭
from capswriter-offline.
为什么我的ChatGPT4都写不出来这么华丽的GUI😭
prompt的艺术😆,要先让它角色扮演成为专业的软件工程师
from capswriter-offline.
你速度好快😂,我还打算晚上写一个来着。 建议你干脆重新弄个库,把这个gui开源出来,再问问作者能不能把你的仓库的链接放到readme
恰好我也需要这个功能,就用ChatGLM4生成了下,AI太强了https://github.com/H1DDENADM1N/CapsWriter-Offline
from capswriter-offline.
虚拟桌面
from capswriter-offline.
可以看看 https://github.com/winsw/winsw ,包装成 Windows 服务。当然软件原本就带了 winsw 的配置就最好了。
from capswriter-offline.
虚拟桌面
我在网上教程和chatgpt的帮助写了一个python程序,基本实现了我说的功能,请您将其加入源代码中。
import tkinter as tk
import pystray
from PIL import Image
import subprocess
from queue import Queue
class GUI:
def __init__(self):
self.root = tk.Tk()
self.root.title('演示窗口')
self.root.geometry("500x200+1100+150")
self.root.protocol('WM_DELETE_WINDOW', self.hide_window)
self.create_systray_icon()
self.interface()
self.output_queue = Queue()
self.start_test_script()
self.hide_window()
def interface(self):
self.text_box = tk.Text(self.root, wrap="word")
self.text_box.pack(expand=True, fill="both")
def create_systray_icon(self):
menu = (
pystray.MenuItem('显示', self.show_window, default=True),
pystray.Menu.SEPARATOR,
pystray.MenuItem('退出', self.quit_window))
image = Image.open("ICO.ico")
self.icon = pystray.Icon("icon", image, "图标名称", menu)
threading.Thread(target=self.icon.run, daemon=True).start()
def hide_window(self):
self.root.withdraw()
def show_window(self):
self.icon.visible = True
self.root.deiconify()
def quit_window(self, icon: pystray.Icon):
icon.stop()
self.root.quit()
self.root.destroy()
def start_test_script(self):
# 启动test.py并将输出重定向到队列
process = subprocess.Popen(['python', 'test.py'], stdout=subprocess.PIPE, stderr=subprocess.STDOUT, text=True)
threading.Thread(target=self.enqueue_output, args=(process.stdout,), daemon=True).start()
self.root.after(100, self.update_text_box)
def enqueue_output(self, out):
for line in out:
self.output_queue.put(line)
def update_text_box(self):
# 从队列中获取输出并显示在文本框中
while not self.output_queue.empty():
line = self.output_queue.get()
self.text_box.insert("end", line)
self.text_box.see("end") # 滚动文本框以显示最新输出
self.root.after(100, self.update_text_box)
if __name__ == '__main__':
a = GUI()
a.root.mainloop()
from capswriter-offline.
我在网上教程和chatgpt的帮助写了一个python程序,基本实现了我说的功能,请您将其加入源代码中。
两年内不考虑集成 GUI,这东西不是说加就加,而是加上以后新的需求就更不断了。
from capswriter-offline.
from capswriter-offline.
你速度好快😂,我还打算晚上写一个来着。
建议你干脆重新弄个库,把这个gui开源出来,再问问作者能不能把你的仓库的链接放到readme
from capswriter-offline.
Related Issues (20)
- 小提示,numpy没有指定版本
- 能否实现实时字幕功能 HOT 1
- 能否增加选择采集设备的功能 HOT 1
- 請問如何更換為粵語模型? HOT 1
- 能否添加实时转录的功能和接口
- issue: 关于复杂的模型下载问题 HOT 1
- 已提交内存3G
- 希望提供GNU/Linux软件包
- 两个痛点,关于连续录音以及录音文件直接转化的问题 HOT 1
- 关于软件的一些建议
- 软件适配建议
- 关于长词无法准确识别的问题
- 最新 GUI 版本音视频生成字幕有问题 HOT 2
- 中英文识别错误
- 对于部分程序不支持直接输入
- 请问支持cuda吗?
- 安装好了 但是无法唤起音视频 转文字
- 不使用剪切板模式的时候,识别时有标点符号,但上屏没有
- 请问有 Mac 版吗
- use FunAudioLLM/SenseVoiceSmall and cuda version instead
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from capswriter-offline.