hanc-webrtc-widgets 2.1.8 → 2.1.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -683,54 +683,118 @@ cleanup();
683
683
 
684
684
  ## Advanced Configuration
685
685
 
686
- ### Audio Reactivity Tuning
686
+ The orb visualization is fully customizable with dozens of parameters. Here's what you can tweak to make it perfect for your design.
687
+
688
+ ### Visual Appearance
689
+
690
+ Control how the orb looks and glows:
687
691
 
688
692
  ```html
689
693
  <hanc-ai-inline-call
690
694
  agent-id="YOUR_AGENT_ID"
691
- audio-reactivity="4.0"
692
- audio-smoothing="0.85"
693
- morph-strength="1.2"
695
+ glow-intensity="1.2"
696
+ fresnel-power="2.5"
697
+ color-contrast="1.5"
698
+ noise-scale="1.5"
694
699
  ></hanc-ai-inline-call>
695
700
  ```
696
701
 
697
- - **`audio-reactivity`**: Higher values = stronger visual response (1.0 - 5.0)
698
- - **`audio-smoothing`**: Lower = smoother, Higher = snappier (0.1 - 1.0)
699
- - **`morph-strength`**: Audio-driven deformation intensity (0.5 - 2.0)
702
+ **Glow Settings:**
703
+ - `glow-intensity` (0.5 - 2.0, default: 0.8) - How bright the outer glow appears. Higher = more dramatic glow effect
704
+ - `idle-glow-multiplier` (0 - 1.0, default: 0.4) - Glow brightness when nobody's talking. Lower = more subtle when idle
705
+ - `fresnel-power` (1.0 - 5.0, default: 2.5) - Edge highlight intensity. Higher = sharper, brighter edge glow
700
706
 
701
- ### Visual Effects
707
+ **Color & Texture:**
708
+ - `color-contrast` (1.0 - 3.0, default: 1.5) - Sharpness of the color pattern. Higher = more defined color bands
709
+ - `noise-scale` (1.0 - 3.0, default: 1.5) - Detail level of the surface texture. Higher = more intricate patterns
710
+
711
+ ### Audio Reactivity
712
+
713
+ Make the orb respond to voice input:
702
714
 
703
715
  ```html
704
716
  <hanc-ai-inline-call
705
717
  agent-id="YOUR_AGENT_ID"
706
- glow-intensity="1.5"
707
- fresnel-power="3.0"
708
- color-contrast="2.0"
709
- noise-scale="2.0"
718
+ audio-reactivity="3.0"
719
+ audio-smoothing="0.9"
720
+ morph-strength="1.0"
710
721
  ></hanc-ai-inline-call>
711
722
  ```
712
723
 
713
- - **`glow-intensity`**: Outer glow strength (0.5 - 2.0)
714
- - **`fresnel-power`**: Edge highlight intensity (1.0 - 5.0)
715
- - **`color-contrast`**: Color pattern sharpness (1.0 - 3.0)
716
- - **`noise-scale`**: Pattern detail level (1.0 - 3.0)
724
+ **Response Intensity:**
725
+ - `audio-reactivity` (1.0 - 5.0, default: 3.0) - How strongly the orb reacts to audio. Higher = more dramatic pulsing and movement
726
+ - `morph-strength` (0.5 - 2.0, default: 1.0) - How much the orb deforms when responding to voice. Higher = more shape-shifting
727
+
728
+ **Smoothness:**
729
+ - `audio-smoothing` (0.1 - 1.0, default: 0.9) - How smooth the audio reaction is. Lower = gentle flowing motion, Higher = snappy response
730
+
731
+ ### Idle Behavior
717
732
 
718
- ### Idle Animation
733
+ Configure how the orb moves when nobody's talking:
719
734
 
720
735
  ```html
721
736
  <hanc-ai-inline-call
722
737
  agent-id="YOUR_AGENT_ID"
723
- idle-morph-multiplier="0.5"
738
+ idle-morph-multiplier="0.25"
739
+ rotation-speed="0.1"
740
+ noise-speed="0.3"
741
+ ></hanc-ai-inline-call>
742
+ ```
743
+
744
+ **Idle Animation:**
745
+ - `idle-morph-multiplier` (0 - 1.0, default: 0.25) - How much the orb "breathes" when idle. Higher = more movement
746
+ - `rotation-speed` (0 - 1.0, default: 0.1) - Rotation speed. Higher = faster spinning
747
+ - `noise-speed` (0 - 1.0, default: 0.3) - Pattern animation speed. Higher = faster flowing patterns
748
+
749
+ ### Complete Example
750
+
751
+ Here's a custom configuration that creates a high-energy, reactive orb:
752
+
753
+ ```html
754
+ <hanc-ai-inline-call
755
+ agent-id="YOUR_AGENT_ID"
756
+ theme="emerald"
757
+
758
+ <!-- Make it glow brighter and more dramatically -->
759
+ glow-intensity="1.5"
724
760
  idle-glow-multiplier="0.6"
761
+ fresnel-power="3.0"
762
+
763
+ <!-- React strongly to audio -->
764
+ audio-reactivity="4.0"
765
+ audio-smoothing="0.85"
766
+ morph-strength="1.2"
767
+
768
+ <!-- More intricate patterns -->
769
+ color-contrast="2.0"
770
+ noise-scale="2.0"
771
+
772
+ <!-- More animated when idle -->
773
+ idle-morph-multiplier="0.5"
725
774
  rotation-speed="0.2"
726
775
  noise-speed="0.5"
727
776
  ></hanc-ai-inline-call>
728
777
  ```
729
778
 
730
- - **`idle-morph-multiplier`**: Movement in idle state (0 - 1.0)
731
- - **`idle-glow-multiplier`**: Glow visibility when idle (0 - 1.0)
732
- - **`rotation-speed`**: Rotation animation speed (0 - 1.0)
733
- - **`noise-speed`**: Pattern animation speed (0 - 1.0)
779
+ ### Tips for Fine-Tuning
780
+
781
+ **For subtle, professional look:**
782
+ - Lower `glow-intensity` (0.6 - 0.8)
783
+ - Lower `audio-reactivity` (2.0 - 2.5)
784
+ - Lower `idle-morph-multiplier` (0.1 - 0.2)
785
+
786
+ **For energetic, eye-catching look:**
787
+ - Higher `glow-intensity` (1.2 - 1.8)
788
+ - Higher `audio-reactivity` (3.5 - 4.5)
789
+ - Higher `morph-strength` (1.2 - 1.5)
790
+
791
+ **For smooth, flowing animations:**
792
+ - Lower `audio-smoothing` (0.7 - 0.85)
793
+ - Lower `rotation-speed` (0.05 - 0.1)
794
+
795
+ **For responsive, snappy animations:**
796
+ - Higher `audio-smoothing` (0.9 - 0.95)
797
+ - Higher `noise-speed` (0.5 - 0.7)
734
798
 
735
799
  ---
736
800