Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 10 additions & 42 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const eventsMap = {
...speechEventsMap
};

const trackingId = 'UA-108091601-1';
const trackingId = 'G-Y706E4YK8Q';
const ga = GoogleAnalyticsGtag(trackingId);

const gaMiddleware = createMiddleware(eventsMap, ga, {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -772,23 +772,46 @@ class CommunicatorDialogBoardItem extends React.Component {
{moment(board.lastEdited).format('DD/MM/YYYY')}
</div>

<div className="CommunicatorDialog__boards__item__data__extra">
<div
className="CommunicatorDialog__boards__item__data__extra"
style={{ display: 'flex', alignItems: 'center', gap: '6px' }}
>
{board.isPublic && (
<Tooltip
title={intl.formatMessage(messages.publicBoard)}
name="CommunicatorDialog__PropertyOption"
>
<PublicIcon />
<div
style={{ display: 'flex', alignItems: 'center', gap: '4px' }}
>
<PublicIcon />
{board.language && (
<span style={{ fontSize: '0.85rem', opacity: 0.8 }}>
{board.language}
</span>
)}
</div>
</Tooltip>
)}

{!board.isPublic && (
<Tooltip
title={intl.formatMessage(messages.privateBoard)}
name="CommunicatorDialog__PropertyOption"
>
<KeyIcon />
<div
style={{ display: 'flex', alignItems: 'center', gap: '4px' }}
>
<KeyIcon />
{board.language && (
<span style={{ fontSize: '0.85rem', opacity: 0.8 }}>
{board.language}
</span>
)}
</div>
</Tooltip>
)}

{communicator.rootBoard === board.id && (
<Tooltip
title={intl.formatMessage(messages.rootBoard)}
Expand All @@ -797,12 +820,13 @@ class CommunicatorDialogBoardItem extends React.Component {
<HomeIcon />
</Tooltip>
)}

{activeBoardId === board.id && (
<Tooltip
title={intl.formatMessage(messages.activeBoard)}
name="CommunicatorDialog__PropertyOption"
>
<RemoveRedEyeIcon />
<EditIcon />
</Tooltip>
)}
</div>
Expand Down
20 changes: 12 additions & 8 deletions src/providers/SpeechProvider/tts.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,19 +197,23 @@ const tts = {
}

// Android
// ✅ Fix for Linux freeze when no TTS voices available
if ('onvoiceschanged' in synth) {
synth.addEventListener('voiceschanged', function voiceslst() {
const voices = synth.getVoices();
if (!voices.length) {
return null;
} else {

// 🛠️ Handle case: no voices found
if (!voices || voices.length === 0) {
console.warn('No TTS voices available. Resolving with empty list.');
synth.removeEventListener('voiceschanged', voiceslst);
// On Cordova, voice results are under `._list`
platformVoices = voices._list || voices;
resolve(
platformVoices.concat(cloudVoices).concat(elevenLabsVoices)
);
resolve([]); // resolve with empty array instead of freezing
return;
}

// 🧠 Normal case: voices found
synth.removeEventListener('voiceschanged', voiceslst);
platformVoices = voices._list || voices;
resolve(platformVoices.concat(cloudVoices).concat(elevenLabsVoices));
});
} else if (isCordova()) {
// Samsung devices on Cordova
Expand Down
Loading