local storage for speech is limited to round 30 words

Topics related to client-side programming language.
Post questions and answers about JavaScript, Ajax, or jQuery codes and scripts.
User avatar
JanMolendijk
Posts:282
Location:Holland Rotterdam

local storage for speech is limited to round 30 words

Pleasant Coursesweb,

The local storage for speech is limited to round 30 words.
But may also be limited to a number of characters ?

When I test it offline it is unlimited able to let speak textfor an whole day.

Under I have dropped an test-codewere I can not find the limit.
Please help me out

Code: Select all

<table><tr></tr><td>

<?php echo $daten; ?>
<?php echo date('d-m-Y'); ?> <?php echo date('d-m-Y'); ?> hhhh Text area with local storage
<br>
<textarea id=a style=resize:none oninput=localStorage.MolendijkTest=a.value>
 <?php echo  $row['post_user_name']?> wrote on: <?php echo  $row['post_date_date']?>  title: <?php echo  $row['title']?>  context: <?php echo  $row['post_text']?>
</textarea>
<br><button onClick=Molendijk.Speak(a.value)>Test Speech</button>
</span>
</td><td>

</table>
<br>

<script>
'use strict';

const Molendijk = parent.Molendijk;
const SystemReset=()=>
{
    if (!confirm('Are you sure?')) return;
    localStorage.clear();
    parent.location.reload();
}

// init variables
let shader, s, r = Date.now();

// load local storage text area
a.value = localStorage.MolendijkTest || a.value;

// main loop
const Loop=t=>
{
    requestAnimationFrame(Loop);
    
    // render shader if focused
    Molendijk.RenderShader(c, shader, t/1e3);
}

// create a simple shader
shader = Molendijk.CreateShader
(
    c, 
    'void mainImage(out vec4 c,vec2 p){for(int i;++i<35;)c.xy=mat2(-c.g,c.r,c)*c.gr+((0.5-p/iResolution.y)*(1.1+sin(iTime))-.6);}'
);

// start the loop
Loop();
</script>

I found out in Chrome browser the limit is at least lesser then in Edge browser with speech.
Don`t known maybe Edge have no limits incase ?
But I hope you have answers for me to get deleted those limits in speech.

MarPlo Posts:186
Hello,
I don't know if the limit is in code. I not understand that js code.
Anyway, try to modify the value of 35 in that piece of code:

Code: Select all

for(int i;++i<35;)
- If that doesn't work, I have no other idea.

JanMolendijk Posts:282
Marplo thanks for the suport.... Strange in Edge browser
the speech is unlimited but Chrome has big limits in speech.

Similar Topics