Skip to content
This repository was archived by the owner on Apr 18, 2024. It is now read-only.

Commit 4100d96

Browse files
authored
chore: LSDV-4727: Remove any AudioPlus mentions (#1296)
* chore: LSDV-4727: Remove any AudioPlus mentions * last remnants of AudioPlus
1 parent c38c288 commit 4100d96

14 files changed

+23
-23
lines changed

e2e/examples/audio-paragraphs.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const config = `
22
<View>
3-
<AudioPlus name="audio" value="$url" hotkey="space" sync="text" />
3+
<Audio name="audio" value="$url" hotkey="space" sync="text" />
44
<Header value="Sentiment"/>
55
<ParagraphLabels name="label" toName="text">
66
<Label value="General: Positive" background="#00ff00"/>

e2e/examples/audio-regions.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ const config = `
1414
<Choice value="Pop" />
1515
</Choices>
1616
<Header value="Listen the audio:"></Header>
17-
<AudioPlus name="audio" value="$url"></AudioPlus>
17+
<Audio name="audio" value="$url"></Audio>
1818
</View>
1919
`;
2020

e2e/tests/audio/audio-controls.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const config = `
1616
<Choice value="Pop" />
1717
</Choices>
1818
<Header value="Listen the audio:"></Header>
19-
<AudioPlus name="audio" value="$url"></AudioPlus>
19+
<Audio name="audio" value="$url"></Audio>
2020
</View>
2121
`;
2222

e2e/tests/audio/audio-errors.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const config = `
88
<Label value="Other"></Label>
99
</Labels>
1010
<Header value="Listen the audio:"></Header>
11-
<AudioPlus name="audio" value="$url"></AudioPlus>
11+
<Audio name="audio" value="$url"></Audio>
1212
</View>
1313
`;
1414

e2e/tests/audio/audio-regions.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ const config = `
1616
<Choice value="Pop" />
1717
</Choices>
1818
<Header value="Listen the audio:"></Header>
19-
<AudioPlus name="audio" value="$url"></AudioPlus>
19+
<Audio name="audio" value="$url"></Audio>
2020
</View>
2121
`;
2222

2323
const configSpeech = `
2424
<View>
25-
<AudioPlus name="audio" value="$url"></AudioPlus>
25+
<Audio name="audio" value="$url"></Audio>
2626
<Labels name="label" toName="audio">
2727
<Label value="Speech"/>
2828
<Label value="Noise" background="grey"/>

e2e/tests/audio/audio-webaudio-decoder.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ const config = `
1616
<Choice value="Pop" />
1717
</Choices>
1818
<Header value="Listen the audio:"></Header>
19-
<AudioPlus name="audio" value="$url"></AudioPlus>
19+
<Audio name="audio" value="$url"></Audio>
2020
</View>
2121
`;
2222

2323
const configSpeech = `
2424
<View>
25-
<AudioPlus name="audio" value="$url" decoder="webaudio"></AudioPlus>
25+
<Audio name="audio" value="$url" decoder="webaudio"></Audio>
2626
<Labels name="label" toName="audio">
2727
<Label value="Speech"/>
2828
<Label value="Noise" background="grey"/>

e2e/tests/empty-labels.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ examples.forEach(example => {
4040
if (Utils.xmlTreeHasTag(configTree, 'Image')) {
4141
AtImageView.waitForImage();
4242
}
43-
if (Utils.xmlFindBy(configTree, node => node['#name'] === 'AudioPlus' || node['#name'] === 'Audio')) {
43+
if (Utils.xmlFindBy(configTree, node => node['#name'] === 'Audio')) {
4444
await AtAudioView.waitForAudio();
4545
}
4646

@@ -80,7 +80,7 @@ examples.forEach(example => {
8080
if (Utils.xmlTreeHasTag(configTree, 'Image')) {
8181
AtImageView.waitForImage();
8282
}
83-
if (Utils.xmlFindBy(configTree, node => node['#name'] === 'AudioPlus' || node['#name'] === 'Audio')) {
83+
if (Utils.xmlFindBy(configTree, node => node['#name'] === 'Audio')) {
8484
await AtAudioView.waitForAudio();
8585
}
8686

e2e/tests/maxUsage.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ Data(maxUsageDataTable).Scenario('Max usages of labels in Audio on region creati
211211
<Label value="Label_0" />
212212
<Label value="Label_1" hotkey="1"/>
213213
</Labels>
214-
<AudioPlus name="audio" value="$audio" />
214+
<Audio name="audio" value="$audio" />
215215
</View>`,
216216
data: {
217217
audio: 'https://htx-misc.s3.amazonaws.com/opensource/label-studio/examples/audio/barradeen-emotional.mp3',

e2e/tests/shortcuts.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const createConfig = ({ rows = '1' }) => {
88
<Shortcut alias="[!]" value="!" hotkey="3" />
99
<Shortcut alias="[make a ninja]" value="‍👤" hotkey="4" />
1010
</TextArea>
11-
<AudioPlus name="audio" value="$audio"/>
11+
<Audio name="audio" value="$audio"/>
1212
<Labels name="labels" toName="audio" allowempty="true">
1313
<Label value="Label1"/>
1414
<Label value="Label2"/>

e2e/tests/smoke.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ examples.slice(1).forEach(example =>
6363
AtImageView.waitForImage();
6464
}
6565

66-
if (Utils.xmlFindBy(configTree, node => node['#name'] === 'AudioPlus' || node['#name'] === 'Audio')) {
66+
if (Utils.xmlFindBy(configTree, node => node['#name'] === 'Audio')) {
6767
await AtAudioView.waitForAudio();
6868
}
6969

0 commit comments

Comments
 (0)