mirror of
https://github.com/jambonz/jambonz-webapp.git
synced 2026-10-04 02:04:17 +00:00
wavesurfer region use s instead of sec (#390)
This commit is contained in:
@@ -205,7 +205,7 @@ export const Player = ({ call }: PlayerProps) => {
|
|||||||
color: "rgba(255, 255, 0, 0.55)",
|
color: "rgba(255, 255, 0, 0.55)",
|
||||||
drag: false,
|
drag: false,
|
||||||
resize: false,
|
resize: false,
|
||||||
content: `${(end - endSpeechTime).toFixed(2)} sec`,
|
content: `${(end - endSpeechTime).toFixed(2)}s`,
|
||||||
});
|
});
|
||||||
|
|
||||||
changeRegionMouseStyle(latencyRegion, channel);
|
changeRegionMouseStyle(latencyRegion, channel);
|
||||||
@@ -272,7 +272,7 @@ export const Player = ({ call }: PlayerProps) => {
|
|||||||
color: "rgba(255, 155, 0, 0.55)",
|
color: "rgba(255, 155, 0, 0.55)",
|
||||||
drag: false,
|
drag: false,
|
||||||
resize: false,
|
resize: false,
|
||||||
content: `${(end - start).toFixed(2)} sec`,
|
content: `${(end - start).toFixed(2)}s`,
|
||||||
});
|
});
|
||||||
|
|
||||||
changeRegionMouseStyle(latencyRegion, 1);
|
changeRegionMouseStyle(latencyRegion, 1);
|
||||||
@@ -280,7 +280,7 @@ export const Player = ({ call }: PlayerProps) => {
|
|||||||
latencyRegion.on("click", () => {
|
latencyRegion.on("click", () => {
|
||||||
setWaveSurferTtsLatencyData({
|
setWaveSurferTtsLatencyData({
|
||||||
vendor: ttsVendor.value.stringValue,
|
vendor: ttsVendor.value.stringValue,
|
||||||
latency: `${(end - start).toFixed(2)} sec`,
|
latency: `${(end - start).toFixed(2)}s`,
|
||||||
isCached: String(ttsCache.value.boolValue),
|
isCached: String(ttsCache.value.boolValue),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
@@ -309,9 +309,7 @@ export const Player = ({ call }: PlayerProps) => {
|
|||||||
color: "rgba(255, 3, 180, 0.55)",
|
color: "rgba(255, 3, 180, 0.55)",
|
||||||
drag: false,
|
drag: false,
|
||||||
resize: false,
|
resize: false,
|
||||||
content: createMultiLineTextElement(
|
content: createMultiLineTextElement(`${(end - start).toFixed(2)}s`),
|
||||||
`${(end - start).toFixed(2)} sec`
|
|
||||||
),
|
|
||||||
});
|
});
|
||||||
const [statusCode] = getSpanAttributeByName(
|
const [statusCode] = getSpanAttributeByName(
|
||||||
s.attributes,
|
s.attributes,
|
||||||
@@ -321,7 +319,7 @@ export const Player = ({ call }: PlayerProps) => {
|
|||||||
latencyRegion.on("click", () => {
|
latencyRegion.on("click", () => {
|
||||||
setWaveSurferGatherSpeechVerbHookLatencyData({
|
setWaveSurferGatherSpeechVerbHookLatencyData({
|
||||||
statusCode: statusCode ? Number(statusCode.value.doubleValue) : 404,
|
statusCode: statusCode ? Number(statusCode.value.doubleValue) : 404,
|
||||||
latency: `${(end - start).toFixed(2)} sec`,
|
latency: `${(end - start).toFixed(2)}s`,
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user