Stream data concatenation issue
COLLABORATOR
Hi! 

You can call `map` as follows to avoid the error:
```python
augmented_dataset_cln = dataset_cln['train'].map(augment_dataset, features=dataset_cln['train'].features)
```
2023-05-08T19:25:30Z
https://github.com/huggingface/datasets/issues/5828#issuecomment-1538922861
https://api.github.com/repos/huggingface/datasets/issues/5828
IC_kwDODunzps5buhlt
https://api.github.com/repos/huggingface/datasets/issues/comments/1538922861/reactions
2023-05-08T19:25:30Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1538922861
https://avatars.githubusercontent.com/u/47462742?v=4
https://api.github.com/users/mariosasko/events{/privacy}
https://api.github.com/users/mariosasko/followers
https://api.github.com/users/mariosasko/following{/other_user}
https://api.github.com/users/mariosasko/gists{/gist_id}
https://github.com/mariosasko
mariosasko
MDQ6VXNlcjQ3NDYyNzQy
https://api.github.com/users/mariosasko/orgs
https://api.github.com/users/mariosasko/received_events
https://api.github.com/users/mariosasko/repos
https://api.github.com/users/mariosasko/starred{/owner}{/repo}
https://api.github.com/users/mariosasko/subscriptions
User
https://api.github.com/users/mariosasko
public
NONE
Thanks it is solved
2023-05-10T05:05:47Z
https://github.com/huggingface/datasets/issues/5828#issuecomment-1541358511
https://api.github.com/repos/huggingface/datasets/issues/5828
IC_kwDODunzps5b30Ov
https://api.github.com/repos/huggingface/datasets/issues/comments/1541358511/reactions
2023-05-10T05:05:47Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1541358511
https://avatars.githubusercontent.com/u/48817796?v=4
https://api.github.com/users/krishnapriya-18/events{/privacy}
https://api.github.com/users/krishnapriya-18/followers
https://api.github.com/users/krishnapriya-18/following{/other_user}
https://api.github.com/users/krishnapriya-18/gists{/gist_id}
https://github.com/krishnapriya-18
krishnapriya-18
MDQ6VXNlcjQ4ODE3Nzk2
https://api.github.com/users/krishnapriya-18/orgs
https://api.github.com/users/krishnapriya-18/received_events
https://api.github.com/users/krishnapriya-18/repos
https://api.github.com/users/krishnapriya-18/starred{/owner}{/repo}
https://api.github.com/users/krishnapriya-18/subscriptions
User
https://api.github.com/users/krishnapriya-18
public
NONE
Hi! 
I have run into the same problem with you. Could you please let me know how you solve it? Thanks!
2023-06-29T20:07:55Z
https://github.com/huggingface/datasets/issues/5828#issuecomment-1613745382
https://api.github.com/repos/huggingface/datasets/issues/5828
IC_kwDODunzps5gL8zm
https://api.github.com/repos/huggingface/datasets/issues/comments/1613745382/reactions
2023-06-29T20:07:55Z
https://api.github.com/repos/huggingface/datasets/issues/comments/1613745382
https://avatars.githubusercontent.com/u/83874200?v=4
https://api.github.com/users/chengxiLei/events{/privacy}
https://api.github.com/users/chengxiLei/followers
https://api.github.com/users/chengxiLei/following{/other_user}
https://api.github.com/users/chengxiLei/gists{/gist_id}
https://github.com/chengxiLei
chengxiLei
MDQ6VXNlcjgzODc0MjAw
https://api.github.com/users/chengxiLei/orgs
https://api.github.com/users/chengxiLei/received_events
https://api.github.com/users/chengxiLei/repos
https://api.github.com/users/chengxiLei/starred{/owner}{/repo}
https://api.github.com/users/chengxiLei/subscriptions
User
https://api.github.com/users/chengxiLei
public
### Describe the bug

I am not able to concatenate the augmentation of the stream data. I am using the latest version of dataset.

ValueError: The features can't be aligned because the key audio of features {'audio_id': Value(dtype='string', 
id=None), 'audio': {'array': Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), 'path': 
Value(dtype='null', id=None), 'sampling_rate': Value(dtype='int64', id=None)}, 'transcript': Value(dtype='string', 
id=None)} has unexpected type - {'array': Sequence(feature=Value(dtype='float32', id=None), length=-1, id=None), 
'path': Value(dtype='null', id=None), 'sampling_rate': Value(dtype='int64', id=None)} (expected either 
Audio(sampling_rate=16000, mono=True, decode=True, id=None) or Value("null").

### Steps to reproduce the bug

dataset = load_dataset("tobiolatunji/afrispeech-200", "all", streaming=True).shuffle(seed=42)
dataset_cln = dataset.remove_columns(['speaker_id', 'path', 'age_group', 'gender', 'accent', 'domain', 'country', 'duration'])
dataset_cln = dataset_cln.cast_column("audio", Audio(sampling_rate=16000))
from audiomentations import AddGaussianNoise,Compose,Gain,OneOf,PitchShift,PolarityInversion,TimeStretch

augmentation = Compose([
    AddGaussianNoise(min_amplitude=0.005, max_amplitude=0.015, p=0.2)
])

def augment_dataset(batch):
    audio = batch["audio"]
    audio["array"] = augmentation(audio["array"], sample_rate=audio["sampling_rate"])    
    return batch

augmented_dataset_cln = dataset_cln['train'].map(augment_dataset)
dataset_cln['train'] = interleave_datasets([dataset_cln['train'], augmented_dataset_cln])
dataset_cln['train'] = dataset_cln['train'].shuffle(seed=42)

### Expected behavior

I should be able to merge as sampling rate is same.

### Environment info

import datasets
import transformers
import accelerate
print(datasets.__version__)
print(transformers.__version__)
print(torch.__version__)
print(evaluate.__version__)
print(accelerate.__version__)

2.12.0
4.28.1
2.0.0
0.4.0
0.18.0