PageSourceSearch

https://www.samaterials.es/js/speechHandle.js?v=1788571303

js samaterials.es collected 2026-10-02 20:47:32 UTC 997 bytes, 32 lines download raw bytes

1import { readTextWithConfig, pauseSpeech, resumeSpeech, stopSpeech } from './speechUtils.js';
2
3let isPlaying = false; // 跟踪播放状态
4const VoiceLang = 'es-ES';
5$('.start-voice svg').click(function () {
6        stopSpeech();
7        readTextWithConfig($('.blog-content').text(), VoiceLang, 'elder');
8        isPlaying = true;
9        $('.start-voice svg').hide();
10        $('.isPlaying').show();
11});
12 $('.isPlaying').click(function () {
13        // 如果正在播放,则暂停
14        pauseSpeech();
15        isPlaying = false;
16        $('.start-voice').hide();
17        $('.pause-voice').show();
18 });
19
20$('.pause-voice').click(function () {
21        // 如果已暂停,则继续播放
22        resumeSpeech();
23        isPlaying = true;
24        $(this).hide();
25        $('.start-voice').show();
26});
27
28// 页面加载时,确保播放按钮显示,暂停按钮隐藏
29$(document).ready(function() {
30    $('.start-voice').show();
31    $('.pause-voice').hide();
32});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.