Objective: To identify discriminatory spectral patterns of cough consistent with common respiratory sounds, through machine learning, to assist diagnosis. Methods: Spectral analysis of cough recordings of 50 children each with crackles alone, wheezing alone and absence of crackles and wheezing. Identification of unique features through machine learning by dividing them into training (75%) and testing (25%) datasets. Feature extraction was done using R python and Librosa programming language. Two class classification of the features extracted from the training dataset was done using classifier models like Support vector Machine, Random Forest, K nearest neighbour and Classification and regression tree. Identification of most suited classifier model that could accurately differentiate between the studied respiratory sounds in terms of sensitivity and specificity. Results: Random Forest classifier model using Mel-frequency Cepstral Coefficient gave the best results in differentiating crackles from wheezing with sensitivity and specificity of 66.67% and 66.67%. Classifier model performance improved when augmented with clinical features (Respiratory rate, history of recurrent nebulization and family history of atopy); providing sensitivity and specificity of 83.33% and 91.67%. Conclusion: Cough features extracted and classified by machine learning can be used for non-auscultatory diagnosis of crackles and wheeze. This raises the possibility to develop smart applications for possible use by non-medical personnel to enhance their capability.