Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix multiple issues #26

Merged
merged 23 commits into from
Jul 1, 2024
Merged

Conversation

jinmiaoluo
Copy link
Collaborator

@jinmiaoluo jinmiaoluo commented Jun 1, 2024

This PR is based on PR #21 , so it contains many commits.

Fix: #22 #23 #24 #25

jinmiaoluo added 20 commits May 22, 2024 13:16
Reuse the DOM result instead of looking up the DOM tree all the time.
Through the dockerignore file, we can avoid accidental operations
and reduce the size of container images.
When using OpenAI Whisper model, an error will happen because words
field is not an Array, which does't have foreach method.
The ScriptProcessorNode is deprecated and should be replaced with
AudioWorkletNode.

An AudioWorkletNode can be created with a specific
AudioWorkletProcessor. The AudioWorkletProcessor parses audio data
from the source node and uses a message port to send data back to
the corresponding AudioWorkletNode. Each piece of audio data
is a Float32Array containing 128 elements.
@jinmiaoluo jinmiaoluo force-pushed the refactor-audio-api-code branch from df9f538 to 6231db2 Compare June 2, 2024 04:40
When user has connected to the WebSocket server using the address from the
input element, the connectButton should be disabled.

When user updates the WebSocket address, the connectButton should be
re-enabled. If the user is recording, it should be stopped. If a connection has
been established, it should be closed.

When user types 'Enter' in the input element, it should trigger the 'connect
WebSocket' operation for better UI interaction.
We shall push user config to server before handling any audio data.
@jinmiaoluo jinmiaoluo force-pushed the refactor-audio-api-code branch from 3e5b3a2 to 723e46f Compare June 2, 2024 05:19
Use `Math.ceil()` instead of `Math.round()` to ensure there is enough space for
all samples.
Copy link
Owner

@alesaccoia alesaccoia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good

@alesaccoia alesaccoia merged commit 465403b into alesaccoia:main Jul 1, 2024
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.

OpenAI Whisper model is not working
2 participants