Skip to content

Commit

Permalink
Merge branch 'speech_recogn'
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekPet committed Aug 7, 2024
2 parents 2595d06 + d731864 commit 7259994
Show file tree
Hide file tree
Showing 11 changed files with 628 additions and 103 deletions.
4 changes: 2 additions & 2 deletions ArgosTranslateNode/js/argos_tranlsate_node.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ function get_support_langs() {
langs_support.find((f) => f.toLowerCase() == "english") || "english";
// To translate

if (node?.widgets_values.length) {
if (node?.widgets_values?.length) {
const valueSerialized = node?.widgets_values[1];
defaultValue = langs_support.includes(valueSerialized)
? valueSerialized
Expand Down Expand Up @@ -88,7 +88,7 @@ app.registerExtension({
const onConfigure = nodeType.prototype.onConfigure;
nodeType.prototype.onConfigure = function () {
onConfigure?.apply?.(this, arguments);
if (this?.widgets_values.length) get_support_langs.apply(this);
if (this?.widgets_values?.length) get_support_langs.apply(this);
};
}

Expand Down
20 changes: 15 additions & 5 deletions ExtrasNode/README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,21 @@
# ExtrasNode node for ComfyUI

Custom nodes for ComfyUI
## Custom nodes for ComfyUI

> Includes:
![Screenshot ExtrasNode](https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/raw/master/ExtrasNode/extras_node_image.jpg)

> **PreviewTextNode** - The node displays the input text
> Includes nodes:
> **ColorsCorrectNode** - Node for correcting image colors
- **PreviewTextNode** - The node displays the input text

> **HexToHueNode** - The node convert HEX color to HUE (degrees and normal [-0.5, 0.5])
- **ColorsCorrectNode** - Node for correcting image colors

- **HexToHueNode** - The node convert HEX color to HUE (degrees and normal [-0.5, 0.5])

## Additional extensions

![Screenshot ExtrasNode - Additional extensions](https://github.com/AlekPet/ComfyUI_Custom_Nodes_AlekPet/raw/master/ExtrasNode/extras_node_settings_image.jpg)

- Dispaly image size node "Preview Image"

- Speech & Recognition speech
65 changes: 65 additions & 0 deletions ExtrasNode/css/extras_node_styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
.alekpet_extras_node_speechrecognition_box {
margin: 0px;
padding: 0px;
position: absolute;
text-align: center;
cursor: pointer;
font-size: 1rem;
display: flex;
justify-content: center;
align-items: flex-end;
flex-flow: column;
width: 45px;
font-family: monospace;
}

.alekpet_extras_node_speechrecognition_row {
position: relative;
display: flex;
gap: 1px;
justify-content: center;
align-items: center;
}

.alekpet_extras_node_recognition_icon {
width: 8px;
height: 8px;
border: 1px solid var(--primary-fg);
background: transparent;
border-radius: 50%;
padding: 0;
margin: 0;
display: inline-block;
}

.alekpet_extras_node_recognition_icon_active {
border: 1px solid var(--primary-fg);
background: var(--error-text);
border-radius: 0;
}

.alekpet_extras_node_recognition_icon_box {
display: flex;
justify-content: center;
align-items: center;
}

.alekpet_extras_node_recognition_icon:hover {
border: 1px solid var(--primary-fg);
background: var(--error-text);
}

.alekpet_extras_node_info {
display: flex;
align-self: center;
}

.alekpet_extras_node_recognition_clear {
width: 10px;
height: 10px;
accent-color: var(--input-text);
}

.alekpet_extras_node_recognition_clear:not(:checked) {
opacity: 0.5;
}
Binary file added ExtrasNode/extras_node_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added ExtrasNode/extras_node_settings_image.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 7259994

Please sign in to comment.