This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check for requirements: | |
if ! command -v sclite &> /dev/null; then | |
echo "Error: 'sclite' not found in path." | |
echo | |
echo "You need to install it for transcript substitution/insertion/deletion analysis." | |
echo "See: https://github.com/usnistgov/SCTK" | |
exit 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
source .env | |
if [ -z "$SPEECHLY_REACT_UI_PATH" ] | |
then | |
echo "ERROR: Environment variable SPEECHLY_REACT_UI_PATH needs to be set either in the shell or in .env file" | |
exit 1 | |
fi | |
HARDLINK_SOURCE=$SPEECHLY_REACT_UI_PATH/components/src |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, { useCallback, useEffect, useState } from "react"; | |
import { | |
SpeechSegment, | |
SpeechProvider, | |
useSpeechContext, | |
} from "@speechly/react-client"; | |
import { | |
BigTranscript, | |
BigTranscriptContainer, | |
PushToTalkButton, |